What Is My Viewport Size?

Your browser viewport in CSS pixels, the device pixel ratio, and the Tailwind CSS and Bootstrap breakpoint that is active at this width. The numbers update as you resize the window.

Your Browser Viewport

0 × 0

width × height in CSS pixels

Landscape1× DPR

Width

0px

Height

0px

Pixel Ratio

1×

Tailwind CSS Breakpoint

xs <640sm ≥640md ≥768lg ≥1024xl ≥12802xl ≥1536

Bootstrap 5 Breakpoint

xs <576sm ≥576md ≥768lg ≥992xl ≥1200xxl ≥1400

Related Developer Tools

Runs in your browser: your files and text are not uploaded. Free, no account needed.

Last updated: · Reviewed by the QuickTooly Team

Notes on the Numbers

  • Same width as media queries: the values are window.innerWidth and innerHeight, which include the scrollbar, as CSS media queries do. A min-width: 768px rule applies when this page shows 768 or more.
  • Zoom changes it: at 200% browser zoom the same window reports about half the width. Reset zoom (Ctrl or Cmd + 0) before testing breakpoints.
  • Phones: the height changes as the address bar hides and reappears while you scroll.
  • Breakpoints: the badges use the default Tailwind CSS values (sm 640, md 768, lg 1024, xl 1280, 2xl 1536) and Bootstrap 5 values (sm 576, md 768, lg 992, xl 1200, xxl 1400). "xs" means no prefix applies yet. A project with custom breakpoints will differ.

The viewport is not your screen resolution. The Screen Resolution page explains how viewport size, screen size and device pixel ratio relate.

Viewport Questions

Why is the width smaller than my screen resolution?

The viewport is only the area inside the browser window, measured in CSS pixels. Window size, toolbars, browser zoom and display scaling all make it smaller than the screen's pixel count.