Check your current browser viewport dimensions in real time, identify which CSS breakpoint is active, and compare against common device presets — all without leaving this page.

Related tools: Screen Resolution → Screen Resolution Checker | Media Queries → CSS Media Query Generator


Width (px)
×
Height (px)
Breakpoint
DPR —

Breakpoint Indicator

0640768102412801536+
xs<640px
sm640–767
md768–1023
lg1024–1279
xl1280–1535
2xl1536px+
window.innerWidth
Viewport width incl. scrollbar
window.innerHeight
Viewport height incl. scrollbar
document.documentElement
— × —
clientWidth × clientHeight
screen.width × screen.height
Physical screen resolution
devicePixelRatio
CSS px to physical px ratio
Orientation
Portrait / Landscape
Copied to clipboard!

Common Device Viewport Reference

DeviceViewport (CSS px)Tailwind BPNotes
iPhone 15 Pro393 × 852xsPortrait, @3x
iPhone 15 / 14390 × 844xsPortrait, @3x
iPhone SE (3rd gen)375 × 667xsPortrait, @2x
iPad (10th gen)820 × 1180mdPortrait, @2x
iPad Pro 12.9"1024 × 1366lgPortrait, @2x
Pixel 7412 × 915xsPortrait, @2.625x
Galaxy S24360 × 780xsPortrait, @3x
MacBook Air 13"1280 × 800xl@2x Retina
MacBook Pro 14"1512 × 982xl@2x Retina
MacBook Pro 16"1728 × 11172xl@2x Retina
Desktop 1080p1920 × 10802xl@1x standard

How to Use

  1. Read the live numbers at the top — they update instantly as you resize the browser window.
  2. Check the breakpoint bar to see where you fall in the Tailwind CSS grid (xs / sm / md / lg / xl / 2xl).
  3. Compare to device presets in the table to understand how your page will look on real devices.
  4. Click “Copy All Info” to grab a text snapshot for bug reports or design handoffs.

What Each Measurement Means

PropertyWhat it measures
window.innerWidth/HeightThe visible viewport, including the scrollbar area
clientWidth/HeightThe viewport minus the scrollbar — matches your CSS media queries
screen.width/HeightThe physical display resolution (not affected by zoom)
devicePixelRatioHow many physical pixels make up one CSS pixel (2 = Retina)

Tailwind CSS Breakpoints Reference

PrefixMin-widthCSS rule
(none — xs)0 pxdefault styles
sm640 px@media (min-width: 640px)
md768 px@media (min-width: 768px)
lg1024 px@media (min-width: 1024px)
xl1280 px@media (min-width: 1280px)
2xl1536 px@media (min-width: 1536px)

Related tools: Screen Resolution → Screen Resolution Checker | Media Queries → CSS Media Query Generator