Device viewport sizes
Device Screen and Viewport Sizes
Screen resolution and CSS viewport size by device for responsive work. Media queries and vw are based on the viewport size, not the resolution.
Phone viewport widths at a glance
The phones below grouped by CSS viewport width. Follow a width to convert px to vw for that base.
iPhone resolution and viewport sizes
Sizes with iOS Display Zoom set to Default. Models that share the same values are grouped on one row.
| Device | Year | Screen | Viewport (CSS px) | Resolution (px) | DPR | VW |
|---|---|---|---|---|---|---|
| iPhone Duo (inner display) | 2026 | 7.6″ | 626 × 890 | 1878 × 2670 | 3 | 626px base |
| iPhone Duo (outer display) | 2026 | 5.4″ | 466 × 678 | 1398 × 2034 | 3 | 466px base |
| iPhone 18 Pro Max · 17 Pro Max · 16 Pro Max | 2024~2026 | 6.9″ | 440 × 956 | 1320 × 2868 | 3 | 440px base |
| iPhone 18 Pro · 17 Pro · 17 · 16 Pro | 2024~2026 | 6.3″ | 402 × 874 | 1206 × 2622 | 3 | 402px base |
| iPhone Air | 2025 | 6.5″ | 420 × 912 | 1260 × 2736 | 3 | 420px base |
| iPhone 16 Plus · 15 Pro Max · 15 Plus · 14 Pro Max | 2022~2024 | 6.7″ | 430 × 932 | 1290 × 2796 | 3 | 430px base |
| iPhone 16 · 15 Pro · 15 · 14 Pro | 2022~2024 | 6.1″ | 393 × 852 | 1179 × 2556 | 3 | 393px base |
| iPhone 17e · 16e · 14 · 13 · 13 Pro · 12 · 12 Pro | 2020~2026 | 6.1″ | 390 × 844 | 1170 × 2532 | 3 | 390px base |
| iPhone 14 Plus · 13 Pro Max · 12 Pro Max | 2020~2022 | 6.7″ | 428 × 926 | 1284 × 2778 | 3 | 428px base |
| iPhone 13 mini · 12 mini | 2020~2021 | 5.4″ | 375 × 812 | 1080 × 2340 | 3 | 375px base |
| iPhone 11 Pro Max · XS Max | 2018~2019 | 6.5″ | 414 × 896 | 1242 × 2688 | 3 | 414px base |
| iPhone 11 · XR | 2018~2019 | 6.1″ | 414 × 896 | 828 × 1792 | 2 | 414px base |
| iPhone 11 Pro · XS · X | 2017~2019 | 5.8″ | 375 × 812 | 1125 × 2436 | 3 | 375px base |
| iPhone 8 Plus · 7 Plus · 6s Plus · 6 Plus | 2014~2017 | 5.5″ | 414 × 736 | 1080 × 1920 | 3 | 414px base |
| iPhone SE (2nd, 3rd gen) · 8 · 7 · 6s · 6 | 2014~2022 | 4.7″ | 375 × 667 | 750 × 1334 | 2 | 375px base |
| iPhone SE (1st gen) | 2016 | 4.0″ | 320 × 568 | 640 × 1136 | 2 | 320px base |
Samsung Galaxy resolution and viewport sizes
Factory default settings. Plus and Ultra models ship with the screen resolution set to FHD+, so the DPR is given for that setting; switching to WQHD+ keeps the same viewport size. The S25 and S26 Plus and Ultra models, the Z Flip line and recent Z Fold models are left out because public sources disagree on their width (384px or 412px). Treat those as somewhere in the 360–412px range and test.
| Device | Year | Screen | Viewport (CSS px) | Resolution (px) | DPR | VW |
|---|---|---|---|---|---|---|
| Galaxy S26 · S25 · S24 | 2024~2026 | 6.2~6.3″ | 360 × 780 | 1080 × 2340 | 3 | 360px base |
| Galaxy S23 · S22 | 2022~2023 | 6.1″ | 360 × 780 | 1080 × 2340 | 3 | 360px base |
| Galaxy S24 Ultra · S24+ | 2024 | 6.7~6.8″ | 384 × 832 | 1440 × 3120 | 2.8125 | 384px base |
| Galaxy S23+ · S22+ | 2022~2023 | 6.6″ | 384 × 832 | 1080 × 2340 | 2.8125 | 384px base |
| Galaxy S23 Ultra · S22 Ultra | 2022~2023 | 6.8″ | 384 × 824 | 1440 × 3088 | 2.8125 | 384px base |
| Galaxy Z Fold5 (cover display) | 2023 | 6.2″ | 344 × 882 | 904 × 2316 | 2.625 | 344px base |
| Galaxy Z Fold5 (main display) | 2023 | 7.6″ | 690 × 829 | 1812 × 2176 | 2.625 | 690px base |
Google Pixel resolution and viewport sizes
DPR is given for the panel's full resolution. Pro models render at a lower resolution by default, but the viewport size is the same.
| Device | Year | Screen | Viewport (CSS px) | Resolution (px) | DPR | VW |
|---|---|---|---|---|---|---|
| Pixel 10 Pro XL · 9 Pro XL · 8 Pro | 2023~2025 | 6.7~6.8″ | 448 × 997 | 1344 × 2992 | 3 | 448px base |
| Pixel 10 Pro · 9 Pro | 2024~2025 | 6.3″ | 427 × 952 | 1280 × 2856 | 3 | 427px base |
| Pixel 10 · 9 · 9a | 2024~2025 | 6.3″ | 412 × 924 | 1080 × 2424 | 2.625 | 412px base |
| Pixel 8 · 8a · 7 · 7a | 2022~2024 | 6.1~6.3″ | 412 × 915 | 1080 × 2400 | 2.625 | 412px base |
| Pixel 7 Pro | 2022 | 6.7″ | 412 × 892 | 1440 × 3120 | 3.5 | 412px base |
iPad resolution and viewport sizes
Portrait orientation. Landscape swaps the two values, and Split View or Stage Manager windows make the viewport narrower.
| Device | Year | Screen | Viewport (CSS px) | Resolution (px) | DPR | VW |
|---|---|---|---|---|---|---|
| iPad Pro 13″ (M4·M5) | 2024~2025 | 13″ | 1032 × 1376 | 2064 × 2752 | 2 | 1032px base |
| iPad Pro 11″ (M4·M5) | 2024~2025 | 11″ | 834 × 1210 | 1668 × 2420 | 2 | 834px base |
| iPad Air 13″ (M2 and later) | 2024~ | 13″ | 1024 × 1366 | 2048 × 2732 | 2 | 1024px base |
| iPad Air 11″ (M2 and later) · iPad (A16) | 2024~ | 11″ | 820 × 1180 | 1640 × 2360 | 2 | 820px base |
| iPad (10th gen) · iPad Air 4, 5 | 2020~2022 | 10.9″ | 820 × 1180 | 1640 × 2360 | 2 | 820px base |
| iPad mini (A17 Pro) · mini 6 | 2021~2024 | 8.3″ | 744 × 1133 | 1488 × 2266 | 2 | 744px base |
| iPad Pro 12.9″ (1st–6th gen) | 2015~2022 | 12.9″ | 1024 × 1366 | 2048 × 2732 | 2 | 1024px base |
| iPad Pro 11″ (1st–4th gen) | 2018~2022 | 11″ | 834 × 1194 | 1668 × 2388 | 2 | 834px base |
| iPad (7th–9th gen) | 2019~2021 | 10.2″ | 810 × 1080 | 1620 × 2160 | 2 | 810px base |
| iPad Pro 10.5″ · iPad Air 3 | 2017~2019 | 10.5″ | 834 × 1112 | 1668 × 2224 | 2 | 834px base |
| iPad (5th, 6th gen) · iPad Air 1, 2 · iPad mini 2–5 | 2013~2019 | 7.9~9.7″ | 768 × 1024 | 1536 × 2048 | 2 | 768px base |
MacBook resolution and default screen sizes
The viewport column is the full screen size in CSS px at the default display setting. The real viewport is smaller by the browser window size and toolbars.
| Device | Year | Screen | Viewport (CSS px) | Resolution (px) | DPR | VW |
|---|---|---|---|---|---|---|
| MacBook Pro 16″ (2021 and later) | 2021~ | 16.2″ | 1728 × 1117 | 3456 × 2234 | 2 | 1728px base |
| MacBook Pro 14″ (2021 and later) | 2021~ | 14.2″ | 1512 × 982 | 3024 × 1964 | 2 | 1512px base |
| MacBook Air 15″ (M2 and later) | 2023~ | 15.3″ | 1710 × 1107 | 2880 × 1864 | 2 | 1710px base |
| MacBook Air 13″ (M2 and later) | 2022~ | 13.6″ | 1470 × 956 | 2560 × 1664 | 2 | 1470px base |
Values are for portrait orientation, checked in 2026-11. Android values are for factory default settings; changing display zoom or screen resolution changes the viewport size.
Why are resolution and viewport size different?
Resolution is the number of physical pixels in the panel. Viewport size is the number of logical pixels (CSS px) the browser lays pages out in. The ratio between them is the device pixel ratio (DPR, devicePixelRatio).
A phone with a DPR of 3 draws each CSS pixel with 3 × 3 physical pixels, so a 1179 × 2556 screen is treated as 393 × 852 in CSS.
Media queries (min-width and so on), vw and vh units and your mockup base width all follow the viewport size. Resolution only matters when preparing 2x and 3x images.
viewport size (CSS px) = resolution (px) ÷ DPR image size to export = displayed size (CSS px) × DPR
Which width should a mobile mockup use?
- 360px is the safest base when Android matters: design for the narrowest mainstream screen and wider phones just get more room.
- iPhone-first mockups commonly use 375px (older models and SE), 390–393px (standard models) and 402px (recent standard and Pro models).
- Whatever base you choose, check the layout at the narrowest (320–360px) and widest (430–440px) phones.
- Dividing mockup px values by the base width gives vw values that keep the same proportions on every device.
Common responsive breakpoints
Framework defaults. All are min-width values that apply at that width and up.
| Name | Tailwind CSS | Bootstrap 5 |
|---|---|---|
| sm | 640px | 576px |
| md | 768px | 768px |
| lg | 1024px | 992px |
| xl | 1280px | 1200px |
| 2xl / xxl | 1536px | 1400px |
If you define your own, start with three ranges — phone (up to 767px), tablet (768px and up) and desktop (1024px or 1280px and up) — and add breakpoints only where the content breaks.
Monitor resolutions
Standard resolutions to consider when choosing a desktop mockup width.
| Name | Resolution (px) | Ratio |
|---|---|---|
| HD (720p) | 1280 × 720 | 16:9 |
| WXGA | 1366 × 768 | ≈ 16:9 |
| HD+ | 1600 × 900 | 16:9 |
| FHD (1080p) | 1920 × 1080 | 16:9 |
| WUXGA | 1920 × 1200 | 16:10 |
| UWFHD | 2560 × 1080 | ≈ 21:9 |
| QHD (1440p) | 2560 × 1440 | 16:9 |
| WQXGA | 2560 × 1600 | 16:10 |
| UWQHD | 3440 × 1440 | ≈ 21:9 |
| 4K UHD (2160p) | 3840 × 2160 | 16:9 |
| 5K | 5120 × 2880 | 16:9 |
| 8K UHD | 7680 × 4320 | 16:9 |
Windows often runs at 125% or 150% scaling, which makes the viewport smaller: a 1920 × 1080 monitor at 125% has a 1536px wide viewport.
Frequently asked questions
What is the viewport size of the iPhone 17 and 17 Pro?
The iPhone 17 and 17 Pro has a CSS viewport of 402 × 874 px, a physical resolution of 1206 × 2622 px and a DPR of 3. Use the 402px viewport width for media queries and vw math.
What is the viewport size of the Galaxy S25 and S26 (base models)?
The Galaxy S25 and S26 (base models) has a CSS viewport of 360 × 780 px, a physical resolution of 1080 × 2340 px and a DPR of 3. Use the 360px viewport width for media queries and vw math.
What is the viewport size of the iPad Air 11-inch?
The iPad Air 11-inch has a CSS viewport of 820 × 1180 px, a physical resolution of 1640 × 2360 px and a DPR of 2. Use the 820px viewport width for media queries and vw math.
Do media queries use resolution or viewport size?
Viewport size in CSS px. @media (min-width: 768px) applies at 768 CSS pixels and up, not physical pixels. A phone with a 1179px wide panel still gets mobile styles because its viewport is 393px wide.
What is DPR (device pixel ratio)?
The number of physical pixels used per CSS pixel in each direction. At DPR 2 one CSS pixel is drawn with 4 physical pixels, at DPR 3 with 9. You can read it from window.devicePixelRatio in JavaScript.
How do I check the viewport size of my own device?
In the browser console, window.innerWidth and window.innerHeight give the current viewport size, and screen.width and screen.height give the CSS size of the whole screen.