📋 How we test
ⓘ How accurate is this? โ€” click to expand

The window.innerWidth API measures layout viewports, not physical screen space. System-level scaling, browser zoom levels, and scrollbars directly affect the reported dimensions. Mobile devices handle visual viewports and layout viewports differently per the W3C CSS Viewport specification.

Viewport size checker

Viewport Width
Detecting...
window.innerWidth (CSS pixels)
Viewport Height
Detecting...
window.innerHeight (CSS pixels)
CSS Pixel Ratio
Detecting...
window.devicePixelRatio
Effective Resolution
Detecting...
CSS viewport ร— DPR
Screen Resolution
Detecting...
screen.width ร— screen.height
Aspect Ratio
Detecting...
width รท height
Detecting viewport status...

Responsive Breakpoint Classification

Based on your current viewport width, here is how it maps to common CSS responsive breakpoint categories.

Detecting...
Detecting viewport range...
๐Ÿ“ฑ
Mobile
< 480px
๐Ÿ’ป
Tablet
480px โ€“ 768px
๐Ÿ’ป
Small Desktop
768px โ€“ 1024px
๐Ÿ’ป
Desktop
1024px โ€“ 1440px
๐ŸŒ
Wide
1440px+

Visual Viewport Width Reference

The bar below represents your current viewport width relative to common device widths.

Detecting width...
๐Ÿ–ฅ๏ธ Screen Resolution Test โš™๏ธ DPR Checker

A viewport size is the visible area of a web page inside a browser window, excluding scrollbars, toolbars, and borders. Measured in CSS pixels, it determines how a website scales and triggers responsive design breakpoints. Unlike physical screen resolution, viewport dimensions adjust in real-time as you resize or zoom your browser window.

Live-updating data helps you check your browser dimensions and map them to responsive breakpoints. You can also analyze other options using our display tools.

๐Ÿ’ก Key Takeaway: Your viewport is the browser's content area, not your screen resolution. Responsive web design uses viewport width (CSS pixels) to determine breakpoints for mobile, tablet, and desktop layouts.

๐Ÿ”ฌ Testing methodology and accuracy guidelines

Methodology: This tool queries the browser's layout engine to detect the active window boundaries in real time. It retrieves width and height specs based on standard layout coordinates to identify active layout breakpoints. However, this query cannot verify physical display resolutions or prove monitor scaling setups.

Limitations: Browser diagnostics use the standard MDN window.innerWidth API which measures layout viewports rather than physical screen space. System-level scaling, browser zoom levels, and scrolling bars directly affect the reported dimensions. Additionally, mobile devices handle visual viewports and layout viewports differently as explained in the W3C CSS Viewport specification.

Privacy: Screen diagnostics run in your browser. ScreenRes.app does not need to store your display measurements for the tool to work. Some third-party services, such as advertising or consent tools, may use cookies or similar technologies. For details, view our tool accuracy and privacy statement.

Our diagnostics follow our testing methodology and editorial policy. Under these standards, tools are verified for technical accuracy periodically.

Understanding your viewport

Web browsers use the viewport to define the boundaries of a web page's visible area. Knowing your current viewport size is essential for testing responsive designs on different monitors and mobile devices. Our real-time viewport checker helps you measure these dimensions instantly.

What viewport size means

The viewport size represents the visible portion of a web page within your web browser. This area does not include the browser interface elements such as toolbars, tabs, scrollbars, or margins. Your browser measures this layout area in CSS pixels, which are logical units rather than physical hardware points.

Layout viewport vs visual viewport

Mobile web browsers use two distinct viewports to handle desktop-sized layouts on smaller screens. The layout viewport acts as the virtual canvas where the browser draws the website layout. The visual viewport represents the actual portion of that canvas currently visible on the physical screen.

When you pinch to zoom in on a mobile device, the layout viewport remains the same size. However, the visual viewport shrinks because you are looking at a smaller, magnified area of the page. Understanding this distinction helps web developers prevent layout breaking and position fixed elements correctly.

Why viewport differs from screen resolution

Screen resolution defines the total count of physical pixels on your hardware display. In contrast, the viewport size measures the active content window inside your web browser. The browser window is rarely maximized to cover the entire screen, and even when maximized, the browser border and navigation menus reduce the layout space.

Modern high-density displays also use scaling multipliers to keep text and user interface elements readable. For example, a screen with a high device pixel ratio scales its layout, resulting in a viewport size that is smaller than its physical resolution. To see the underlying hardware numbers, you can check your physical screen resolution using the live checker. You can read our detailed explanation of viewports vs resolutions vs DPR to see how these values scale.

How zoom and browser UI affect viewport

Adjusting the zoom level of your browser directly alters the size of your viewport. When you zoom in, the browser increases the size of logical CSS pixels, which decreases the total number of CSS pixels available in the viewport. This change causes the website layout to scale up and can trigger mobile design styles even on a large monitor.

Browser user interface elements also subtract space from the available layout area. On mobile phones, secondary UI elements like the address bar or navigation panels often hide when you scroll down, causing the viewport height to change as you scroll. Web designers must account for these height changes when styling full-screen elements.

How developers should use the result

Web developers use viewport measurements to test responsive layouts and verify how websites respond to different window sizes. By checking the current width and height, you can confirm whether layout containers scale correctly and verify if media query breakpoints trigger at the intended widths. You can read our guide to responsive CSS breakpoints to understand typical design widths.

Using real devices to test layout behavior is highly recommended because browser emulators can sometimes mask hardware-specific rendering bugs. This tool provides instant, live-updating measurements as you resize your browser window, making it easy to test custom responsive designs. You can also calculate screen density using our PPI calculator to ensure your layout elements render at the correct size.

Open Chrome DevTools by pressing F12 or Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac) to debug viewport scaling issues. The viewport size is displayed in the top-right of the browser window when DevTools is open, or you can enable the Device Toolbar (Ctrl+Shift+M) to see the viewport dimensions displayed at the top. This tool shows you the same width value that CSS media queries use.

Popular device viewport sizes

Web developers design layouts around CSS pixels rather than physical display resolution. Here is a reference table showing popular devices, their physical screen resolutions, their device pixel ratios, and their resulting CSS viewport sizes:

Device Name Physical Res DPR Viewport Size (CSS Pixels)
iPhone 15 Pro1179 × 25563.0393 × 852
Samsung Galaxy S231080 × 23403.0360 × 780
iPad Pro 11"1668 × 23882.0834 × 1194
MacBook Air 13"2560 × 16642.01280 × 832
Dell XPS 15 (FHD)1920 × 10801.251536 × 864

Troubleshooting viewport rendering issues

If your responsive website looks too small, pixelated, or zoomed out on mobile devices, check the following developer configurations:

Common responsive breakpoints

Here is how your current viewport width relates to standard CSS breakpoints used in modern frameworks:

The badge and highlighted range above update in real time as you resize your browser window, giving you immediate feedback on which breakpoint category your current viewport belongs to.

Related tools and guides

If you want to check other screen parameters, browse our collection of display tools. Developers testing across device categories can also browse standard mobile viewports in the device resolution database. You can also check our screen resolution test to measure your physical hardware resolution.

Frequently asked questions

Does changing browser window size affect the viewport?
Yes, resizing your browser window changes the width and height available for page layout. The viewport dimensions update instantly to match the new size of the content window.
What is the standard viewport size for mobile phones?
Most modern smartphones have a logical CSS viewport width between 360 and 430 pixels in portrait mode. High physical resolutions are scaled down by device pixel ratios to keep layouts readable.
Why does my page look zoomed out on mobile?
This problem is usually caused by a missing viewport meta tag in your HTML header. Adding the standard viewport tag forces the mobile browser to scale the page to match the device width.
Sources & References: MDN: Window.innerWidth · MDN: Window.innerHeight · MDN: devicePixelRatio · W3C: CSS Viewport Module