# What Is My Viewport Size?

> Check your browser viewport width and height in CSS pixels as you resize. Compare your screen size and see your active breakpoint and device pixel ratio.

- **Source:** DevDreaming (https://devdreaming.com)
- **Canonical URL:** https://devdreaming.com/tools/viewport-size-checker
- **Category:** Frontend & CSS
- **Price:** Free - no signup

---

## Viewport size, screen size, and breakpoints

The live measurement above shows the browser's layout viewport in CSS pixels using window.innerWidth and window.innerHeight. Use the viewport width when checking a responsive layout. Screen Size shows the dimensions of the full display as reported by your browser.

For example, a 768px viewport activates the MD breakpoint in the checker even if your display is 1920px wide. Resize your window to see the active range change, alongside orientation and aspect ratio.

## How to use it

1. Read your current width and height in CSS pixels under Live viewport dimensions.
2. Resize your browser window and watch the dimensions, orientation, and aspect ratio update in real time.
3. Check the highlighted breakpoint card to see which responsive range your viewport is in.
4. Compare the Viewport Size and Screen Size panels to see the difference between the browser window and the full display.
5. Note the Device Pixel Ratio value to understand how CSS pixels map to physical pixels on your screen.
6. Use the Responsive Breakpoints list as a reference for the standard min and max widths.

**[Open the Viewport Size Checker tool ->](https://devdreaming.com/tools/viewport-size-checker)**

This tool runs in your browser and cannot be operated from this Markdown copy - open the link above to use it.

## What you can use it for

- Confirming the exact viewport width at which a responsive layout breaks during development.
- Checking which Tailwind-style breakpoint a device falls into before writing media queries.
- Verifying the device pixel ratio when debugging blurry images or high-DPI assets.
- Comparing viewport size to full screen resolution when diagnosing browser chrome or zoom issues.
- Documenting the test conditions for a layout bug report with precise pixel dimensions.
- Demonstrating how orientation and aspect ratio change as a window is resized.

## Key features

- Live viewport width and height that update on every resize.
- Browser-reported screen size and device pixel ratio readout for the current display.
- Automatic detection of the active responsive breakpoint.
- Orientation and aspect ratio calculated from the current viewport.
- Reference list of standard breakpoint ranges from Mobile (XS) to Large (2XL).

## Frequently asked questions

### How does the checker measure my browser viewport?

The checker reads window.innerWidth and window.innerHeight and refreshes the dimensions when your browser window resizes. This measures the layout viewport and can include scrollbars.

### What is the difference between viewport size and screen size?

The viewport is the area available to the page inside the browser window and changes when you resize it. The screen size describes the full display, as reported by the browser in CSS pixels. The tool shows both side by side so you can compare them.

### Which responsive breakpoint is my viewport in?

The checker highlights the range for your viewport. The breakpoints begin at 640px for SM, 768px for MD, 1024px for LG, 1280px for XL, and 1536px for 2XL. A width below 640px is XS.

### What does device pixel ratio mean?

Device pixel ratio is the number of physical screen pixels that correspond to one CSS pixel. A value of 2x means a high-DPI or Retina display, which is why images may need higher-resolution assets to look sharp.

### Does the viewport size update when I resize the window?

Yes. The tool listens for the browser resize event, so the width, height, orientation, aspect ratio, and active breakpoint all update in real time as you drag the window edges.

### Is the Viewport Size Checker free and private?

Yes. It is free, needs no signup, and reads viewport and screen values entirely in your browser. None of those measurements are sent to a server.

## Privacy

All tools on DevDreaming run entirely in your browser - your input is never uploaded to a server.

---

## Related on DevDreaming

- [All Free Developer Tools](https://devdreaming.com/tools)
- [Frontend & CSS Tools](https://devdreaming.com/tools/category/frontend-css)
- [Clamp() Calculator](https://devdreaming.com/tools/clamp-font-size-calculator)
- [PX to REM Converter](https://devdreaming.com/tools/px-to-rem-converter)
- [Aspect Ratio Calculator](https://devdreaming.com/tools/aspect-ratio-calculator)
- [Cursor CSS Previewer](https://devdreaming.com/tools/cursor-property-viewer)
- [CSS Triangle Generator](https://devdreaming.com/tools/triangle-generator)
- [Box Model Visualizer](https://devdreaming.com/tools/css-box-model-visualizer)

---

_This is the Markdown twin of a page on **DevDreaming** - free developer tutorials, tools, and AI resources. Source of truth: the canonical HTML URL above._