What is my viewport size?

The viewport is the part of the browser window that shows the page. Here is its size in CSS pixels, and it updates as you resize.

Your viewport

Reading your screen…

Breakpoints

NameViewport width
baseUnder 640 px
sm640 to 767 px
md768 to 1023 px
lg1024 to 1279 px
xl1280 to 1535 px
2xl1536 px and up

What the viewport is

  • Not your screen. The viewport is the visible area of the page: the browser window without its toolbars and tabs. Content wider than it makes the page scroll sideways.
  • Where layouts change. Responsive CSS compares its media queries with the viewport width, scrollbar included. The breakpoint above uses the Tailwind CSS defaults.
  • Orientation. As in CSS, a viewport that is at least as wide as it is tall counts as landscape, otherwise portrait. It follows the window, not the device.

Questions

Related tools