Browser Window Size

Show the live size of your browser window and viewport.

—

Runs entirely in your browser — nothing you enter is uploaded.

About this tool

Web designers can check viewport width and height while resizing to test responsive breakpoints.

How to use the Browser Window Size

  1. Resize the window.
  2. Watch the values update.
  3. Compare with your CSS breakpoints.

How it works

innerWidth/innerHeight (viewport including scrollbars), documentElement.clientWidth (excluding scrollbars) and outer window size are read and updated on every resize.

Examples

Testing a breakpoint

Drag the browser edge until the width reads 768 to see your layout exactly at a common tablet breakpoint.

Benefits and use cases

  • Updates live as you resize
  • Shows the viewport with and without scrollbars
  • Helps reproduce responsive bugs

Frequently asked questions

Which value do CSS media queries use?

Width media queries use the viewport width including the scrollbar (innerWidth).

What is the difference between viewport and window size?

The viewport is the area where the page is drawn. The outer window adds the browser’s toolbars, tabs and borders.