Snaplytics Toolkit

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.

×px

Resize your browser window and watch these values update live.

Reading viewport…Breakpoint:
Viewport
window.innerWidth × innerHeight (CSS px)
Layout viewport
documentElement client size
Device pixel ratio
CSS px → physical px
Orientation
Wider than tall, or taller than wide

Tailwind CSS breakpoints

The range your viewport falls into is highlighted as you resize.

PrefixMin widthApplies from
base0px0 – 639px
sm640px640 – 767px
md768px768 – 1023px
lg1024px1024 – 1279px
xl1280px1280 – 1535px
2xl1536px1536px+

Device categories

Mobile
<640px
Tablet
640–1023px
Laptop
1024–1439px
Desktop
≥1440px

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.

Panel sizePanel breakpoint
px
Drag my bottom-right corner ↘

Common device viewport sizes

Approximate portrait CSS-pixel viewports for reference — actual values vary by browser and OS.

DeviceViewport (CSS px)DPR
iPhone SE375 × 6672×
iPhone 15 / 14 Pro393 × 8523×
Pixel 8412 × 9152.6×
iPad mini768 × 10242×
iPad Pro 11"834 × 11942×
Surface Pro912 × 13682×
Laptop (720p)1280 × 7201×
Laptop (1080p)1366 × 7681×
Desktop (1080p)1920 × 10801×

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

BreakpointMin widthTypical devices in that range
base0pxPhones in portrait (~360–430 CSS px wide)
sm640pxLarge phones in landscape, small tablets
md768pxTablets in portrait (an iPad reports 768 px)
lg1024pxTablets in landscape, small laptops
xl1280pxLaptops and standard desktop windows
2xl1536pxLarge and high-resolution desktop monitors

Related tools