Viewport Size Checker - Real-Time Screen Resolution & DPI Tool
Instantly check your browser viewport size, screen resolution, aspect ratio, and pixel density. Essential for responsive web design testing.
Deep Dive Stats
Current Media Query
@media (min-width: 0px) and (max-width: 0px) { ... }
About
Responsive Web Design (RWD) relies heavily on understanding the exact available space within the browser window, known as the Viewport. Unlike the physical screen resolution, the viewport dimensions change dynamically as users resize windows, open developer tools, or rotate devices.
This tool provides a live feed of your current dimensions, separating inner_width (the CSS rendering area) from outer_width (the browser window size). It calculates the precise aspect ratio using the Euclidean algorithm for GCD and detects the Device Pixel Ratio (dpr) to help you optimize high-density (Retina) assets.
Formulas
The Aspect Ratio is calculated by dividing the width w and height h by their Greatest Common Divisor (GCD).
CSS Media Queries rely on the viewport width:
Reference Data
| Device / Standard | Viewport (px) | Aspect Ratio | DPR |
|---|---|---|---|
| Mobile S (iPhone SE) | 320 × 568 | 40:71 | 2.0 |
| Mobile M (iPhone 12/13/14) | 390 × 844 | 195:422 | 3.0 |
| Mobile L (Pixel 7) | 412 × 915 | 206:457 | 2.6 |
| Tablet (iPad Mini) | 768 × 1024 | 3:4 | 2.0 |
| Tablet Pro (iPad Pro 12.9) | 1024 × 1366 | 3:4 | 2.0 |
| Laptop (13-inch) | 1280 × 800 | 8:5 | 2.0 |
| Desktop HD | 1920 × 1080 | 16:9 | 1.0 |
| Desktop 4K | 3840 × 2160 | 16:9 | 1.0 |