Viewport Size & Responsive Breakpoint Tester
See how big your browser window really is to a web page. This tool reads your viewport size in CSS pixels, your device pixel ratio and orientation, and the responsive breakpoint you're currently in — updating live as you resize.
Resize your browser window and watch these values update live.
Tailwind CSS breakpoints
The range your viewport falls into is highlighted as you resize.
| Prefix | Min width | Applies from |
|---|---|---|
| base | 0px | 0 – 639px |
| sm | 640px | 640 – 767px |
| md | 768px | 768 – 1023px |
| lg | 1024px | 1024 – 1279px |
| xl | 1280px | 1280 – 1535px |
| 2xl | 1536px | 1536px+ |
Device categories
Resizable test panel
Drag the bottom-right corner to resize this panel. It reports its own size and which breakpoint that width would hit — a quick responsive gauge.
Common device viewport sizes
Approximate portrait CSS-pixel viewports for reference — actual values vary by browser and OS.
| Device | Viewport (CSS px) | DPR |
|---|---|---|
| iPhone SE | 375 × 667 | 2× |
| iPhone 15 / 14 Pro | 393 × 852 | 3× |
| Pixel 8 | 412 × 915 | 2.6× |
| iPad mini | 768 × 1024 | 2× |
| iPad Pro 11" | 834 × 1194 | 2× |
| Surface Pro | 912 × 1368 | 2× |
| Laptop (720p) | 1280 × 720 | 1× |
| Laptop (1080p) | 1366 × 768 | 1× |
| Desktop (1080p) | 1920 × 1080 | 1× |
The viewport is the area a web page has to draw into — your browser window minus the tabs, address bar, and scrollbars. That is why it is almost always smaller than your screen resolution: the screen is the whole panel, while the viewport is just the slice the page can use. It is measured in CSS pixels, layout units rather than physical dots — high-density 'Retina' displays pack two or three physical pixels into each CSS pixel so text looks sharper, and window.devicePixelRatio reports that multiplier.
This tool reads window.innerWidth and window.innerHeight on every resize and orientation change, alongside the layout viewport from documentElement.clientWidth/clientHeight, your device pixel ratio, and orientation. A breakpoint is a viewport width at which a layout changes — columns stack, a menu collapses, type resizes — and frameworks such as Tailwind CSS apply styles from a set of named widths upward. The reference below highlights the range your width falls into, and the draggable test panel reports the breakpoint its own width would hit, so you can preview a component without resizing your whole window. Everything runs locally; nothing is uploaded.
If the numbers look off, several things sit between your panel's resolution and the viewport a page sees. Browser chrome and scrollbars subtract from the usable area, and page zoom shrinks the CSS-pixel count — so innerWidth drops without the window moving — as does OS display scaling, which is why two identical monitors can report different sizes. On phones the meta viewport tag, <meta name="viewport" content="width=device-width, initial-scale=1">, lays the page out at device width instead of faking a ~980px desktop, so a 390-px viewport at DPR 3 sits on a panel roughly 1170 physical pixels across. To see your screen's full physical resolution and pixel density, use the What Is My Screen Size and Screen Resolution Test tools.
Common responsive breakpoints
| Breakpoint | Min width | Typical devices in that range |
|---|---|---|
| base | 0px | Phones in portrait (~360–430 CSS px wide) |
| sm | 640px | Large phones in landscape, small tablets |
| md | 768px | Tablets in portrait (an iPad reports 768 px) |
| lg | 1024px | Tablets in landscape, small laptops |
| xl | 1280px | Laptops and standard desktop windows |
| 2xl | 1536px | Large and high-resolution desktop monitors |
