Viewport Size Checker
The Viewport Size Checker reads your browser's live layout viewport (the box your CSS media queries actually target), your visual viewport (what's actually visible once a mobile URL bar collapses or you pinch-zoom), and your full screen resolution, then lays all three side by side so you can see exactly where they diverge. Resize the window and watch the numbers update on their own, or hit Copy Specs to grab the values for a bug report. A quick pass through the scrollbar width checker online catches issues before they become real problems.
Your Viewport & Screen Size
Updates live as you resize this window.
Ever wondered exactly how much of a web page your browser is actually showing right now? The Viewport Size Checker gives you an instant, precise readout of your current browser size — the visible width and height of your client window in layout units — along with rich environment data that helps you make smarter decisions about responsive web design, layout testing, and cross-platform compatibility. Whether you're a developer chasing a stubborn breakpoint or a designer verifying how your work renders on a slate-style device, knowing your viewport dimensions by device is the first step toward a truly responsive digital experience.
What Your Viewport Size Checker Reveals About Your Browser Environment
Understanding what this free tool surfaces goes well beyond a simple pair of numbers. Each data point it reveals gives you a clearer picture of the environment your users are browsing in — and that context is invaluable for front-end development, UI debugging, and layout testing. Run your input through the hdr checker online to get a detailed breakdown in seconds.
What Is a Viewport on a Website, and Why Does Your Setup Matter?
The viewport is the visible area of a web page — the rectangular region of the client window where page content is rendered, excluding toolbars, scrollbars, and the chrome itself. Think of it as a window into your page: it defines exactly how much content a visitor can see without scrolling. The viewport dimensions change dynamically depending on the hardware being used — a phone, slate, or laptop panel — as well as how large the user makes the client window on their output.
It's important not to confuse viewport size with resolution or physical dimensions. Your resolution is a hardware property reported by the operating system, measured in physical units. Your physical diagonal is the measured size of your panel. The viewport, by contrast, is a layout and rendering concept — it represents the visible rendered dimensions available to your page, expressed in device-independent units. On high-density panels, the DPR (pixel ratio) multiplies physical units per layout unit, meaning a viewport can appear larger or smaller than the raw resolution suggests. The pixel ratio is therefore a critical value for anyone optimising images or UI elements for retina or high-DPI panels.
What Information Does the Inspection Tool Show About Your Browser?
Beyond the core width and height measurement in layout units, the tool surfaces a full snapshot of your environment:
- Width and Height: The unit width and unit height of your current client viewport — reported as width by height, e.g. 1280 × 800. This tells you exactly how many units wide and how many units tall your visible area is.
- DPR: The pixel ratio, indicating how many physical panel units map to one layout unit on your current setup.
- Browser: The name and version of your client application, detected via agent parsing.
- Platform: Your operating system and platform, useful for platform detection and compatibility checks.
- User Agent: The full agent string your client sends to servers — helpful for debugging and agent-parsing library investigations.
- IP Address: Your detected public network address, shown for transparency since the tool uses an agent-parsing approach that captures this data.
- Location: Geographic location inferred from your network address, included as environment info for context.
- Language: Your client's reported language preference, surfaced via language detection.
- Referer: The referring URL that brought you to this page.
- Current Page: The URL of the page you're currently viewing.
Why Does Your Viewport Size Matter for Responsive Design and UX?
Knowing your viewport size matters because it directly controls how much content a user can see without scrolling. Web designers and developers rely on accurate viewport data to ensure that breakpoints fire at the right widths, that images scale correctly across any platform, and that text remains readable at every device size. If a layout breaks at 768 units wide on a slate or collapses on a handheld, the first diagnostic step is confirming the exact device dimensions at which the problem occurs. Use the free check your dark mode to confirm everything looks correct before you rely on it elsewhere.
For responsive web design, media queries are written against viewport width and viewport height thresholds — not raw resolution. This means the visible CSS dimensions reported by a viewport size checker are the ground truth for debugging layout issues. Frontend developers use these values to confirm that breakpoints behave as expected across different panels, from a compact handheld client to a widescreen desktop. Good user experience and strong UX depend on this precision: a layout that looks perfect on a laptop panel may be completely broken on a phone if the breakpoints aren't calibrated to real-world viewport changes.
Performance is also tied to viewport sizing. Techniques like lazy-load images use the viewport to determine which assets are currently visible, loading only what fits in the frame first. Similarly, minimising scripts and using minimal code reduces CO₂ per load — a commitment shared by those building environmentally friendly and cleaner pages that consume less power across thousands of loads. Viewport-aware development contributes to faster output, better sustainability, and a lower carbon footprint — goals that matter to both users and the planet, especially when renewable energy-powered hosting isn't always available.
How to Use This Viewport Size Checker for Optimizing Your Layouts
Real-Time Detection Across Any Device Size
This simple tool is designed for quickly finding your current browser size and device dimensions without any setup, accounts, or configuration. Here's how to get the most out of it for optimizing your digital projects:
- Open the tool: Your viewport is detected and shown automatically on page load — no input required. The moment the page loads, the tool instantly displays your current viewport size in layout units, including width by height and pixel ratio.
- See the size: The tool instantly shows your unit width and unit height in real time. You'll also see your client name, platform, agent string, network address, location, language, referer, and current page URL — a complete snapshot of your environment info.
- Resize the window: Drag the client window to a new size — make it bigger or smaller — and watch the values update instantly. The tool responds to viewport changes in real time, making it a reactive measuring instrument for testing breakpoints dynamically.
Worked Example: Developer Confirming a Media Query Breakpoint
A developer is building a responsive layout and needs to confirm that a media query targeting a slate-style breakpoint fires at the correct threshold. They open the viewport size checker in their client application, then drag the window smaller until the layout switches. The tool reports a width of exactly 768 units — confirming that the breakpoint is firing as intended. Without a real-time sizing tool like this, the developer would have to estimate or rely on built-in dev tools, which can be harder to read at a glance during rapid resizing.
Worked Example: QA Tester Verifying Handheld Viewport Dimensions
A QA tester opens the tool on a handheld during cross-platform testing for a client's website. The tool instantly displays the viewport dimensions by device as 390 × 844 units with a pixel ratio of 3 — matching the expected values for the target handheld environment. The tester can confirm the responsive layout is rendering correctly for that specific popular device without needing physical access to every hardware variant. This kind of real-time environment verification is a core part of UI development and layout testing workflows.
Worked Example: Designer Checking Viewport After Changing Zoom
A designer is reviewing accessible text sizing on a desktop panel. After increasing the zoom level from 100% to 150%, they check the tool and notice the reported width has dropped from 1440 units to 960 units — even though the window size hasn't changed. This confirms that zooming in effectively shrinks the viewport dynamically, and that any viewport-relative units (like vw or vh) will scale accordingly. The insight helps the designer adjust fluid typography so it remains readable across all zoom levels, improving user experience for visitors who rely on larger text for accessibility.
For app developers and site builders working across all types of panels — from compact phone and slate combinations to large desktop monitors — the ability to check viewport size instantly, see how size changes dynamically, and track view sizes across different popular devices is essential. Whether you're finding dimensions for a new project, debugging a cross-platform layout issue, or simply asking what is my viewport size right now, this tool gives you the precise, reliable data you need. It also serves as a handy browser size reference when you need to quickly confirm that your current setup reports the expected layout dimensions before diving into a longer debugging session with full developer tools.
Frequently Asked Questions
- What is a viewport?
- The viewport is the visible area of a web page within your browser window — it's the portion of the page you can see without scrolling. Its size depends on your device type (phone, tablet, desktop) and how large your browser window is. It is distinct from your full screen resolution because browser chrome (toolbars, scrollbars) takes up some space.
- What information does this Viewport Size Checker show?
- The tool displays your viewport width and height in pixels, the combined aspect ratio, total pixel count, your CSS breakpoint category (e.g. sm, md, lg), and whether your viewport is in portrait or landscape orientation. You can also simulate common device viewports using the preset selector.
- Why should I know my viewport size?
- Knowing your viewport size is essential for web developers and designers building responsive layouts. CSS media queries target specific viewport widths to adjust layouts for different screens. Understanding what viewport your visitors use helps you optimise designs for the most common screen sizes.
- How does this viewport size tool work?
- The tool reads your browser's window.innerWidth and window.innerHeight properties, which return the current viewport dimensions in CSS pixels. These values update any time you resize your browser window. The preset device simulator lets you manually enter known viewport dimensions to test how a layout would behave on a specific device.
- What is the difference between viewport size and screen resolution?
- Screen resolution is the total number of physical pixels on your display hardware (e.g. 1920×1080). Viewport size is the usable CSS pixel area inside your browser window, which is always equal to or smaller than the screen resolution. On high-DPI (Retina) screens, the Device Pixel Ratio (DPR) can be 2× or 3×, meaning the physical pixels are much higher than the CSS pixels reported by the viewport.
- What are common CSS breakpoints I should design for?
- Frameworks like Tailwind CSS and Bootstrap define breakpoints approximately as: xs (< 576px), sm (576–767px), md (768–991px), lg (992–1199px), xl (1200–1399px), and 2xl (1400px+). This tool automatically categorises your viewport into the corresponding breakpoint so you know exactly which CSS rules will apply.
- What is Device Pixel Ratio (DPR)?
- Device Pixel Ratio is the ratio of physical screen pixels to CSS logical pixels. A DPR of 2 (common on iPhones and Retina MacBooks) means the device uses 2 physical pixels for every 1 CSS pixel, resulting in sharper text and images. A viewport of 375px wide on a DPR-2 device has 750 physical pixels across.
- Does viewport size change when I resize my browser?
- Yes — the viewport is dynamic. Any time you resize your browser window, change zoom level, open or close the browser developer tools panel, or rotate a mobile device, the viewport dimensions change. Responsive websites use CSS media queries to detect these changes and adjust their layout automatically.