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
width × height in CSS pixels
Width
0px
Height
0px
Pixel Ratio
1×
Tailwind CSS Breakpoint
Bootstrap 5 Breakpoint
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.innerWidthandinnerHeight, which include the scrollbar, as CSS media queries do. Amin-width: 768pxrule 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.