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.

DeviceYearScreenViewport (CSS px)Resolution (px)DPRVW
iPhone Duo (inner display)20267.6″626 × 8901878 × 26703626px base
iPhone Duo (outer display)20265.4″466 × 6781398 × 20343466px base
iPhone 18 Pro Max · 17 Pro Max · 16 Pro Max2024~20266.9″440 × 9561320 × 28683440px base
iPhone 18 Pro · 17 Pro · 17 · 16 Pro2024~20266.3″402 × 8741206 × 26223402px base
iPhone Air20256.5″420 × 9121260 × 27363420px base
iPhone 16 Plus · 15 Pro Max · 15 Plus · 14 Pro Max2022~20246.7″430 × 9321290 × 27963430px base
iPhone 16 · 15 Pro · 15 · 14 Pro2022~20246.1″393 × 8521179 × 25563393px base
iPhone 17e · 16e · 14 · 13 · 13 Pro · 12 · 12 Pro2020~20266.1″390 × 8441170 × 25323390px base
iPhone 14 Plus · 13 Pro Max · 12 Pro Max2020~20226.7″428 × 9261284 × 27783428px base
iPhone 13 mini · 12 mini2020~20215.4″375 × 8121080 × 23403375px base
iPhone 11 Pro Max · XS Max2018~20196.5″414 × 8961242 × 26883414px base
iPhone 11 · XR2018~20196.1″414 × 896828 × 17922414px base
iPhone 11 Pro · XS · X2017~20195.8″375 × 8121125 × 24363375px base
iPhone 8 Plus · 7 Plus · 6s Plus · 6 Plus2014~20175.5″414 × 7361080 × 19203414px base
iPhone SE (2nd, 3rd gen) · 8 · 7 · 6s · 62014~20224.7″375 × 667750 × 13342375px base
iPhone SE (1st gen)20164.0″320 × 568640 × 11362320px 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.

DeviceYearScreenViewport (CSS px)Resolution (px)DPRVW
Galaxy S26 · S25 · S242024~20266.2~6.3″360 × 7801080 × 23403360px base
Galaxy S23 · S222022~20236.1″360 × 7801080 × 23403360px base
Galaxy S24 Ultra · S24+20246.7~6.8″384 × 8321440 × 31202.8125384px base
Galaxy S23+ · S22+2022~20236.6″384 × 8321080 × 23402.8125384px base
Galaxy S23 Ultra · S22 Ultra2022~20236.8″384 × 8241440 × 30882.8125384px base
Galaxy Z Fold5 (cover display)20236.2″344 × 882904 × 23162.625344px base
Galaxy Z Fold5 (main display)20237.6″690 × 8291812 × 21762.625690px 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.

DeviceYearScreenViewport (CSS px)Resolution (px)DPRVW
Pixel 10 Pro XL · 9 Pro XL · 8 Pro2023~20256.7~6.8″448 × 9971344 × 29923448px base
Pixel 10 Pro · 9 Pro2024~20256.3″427 × 9521280 × 28563427px base
Pixel 10 · 9 · 9a2024~20256.3″412 × 9241080 × 24242.625412px base
Pixel 8 · 8a · 7 · 7a2022~20246.1~6.3″412 × 9151080 × 24002.625412px base
Pixel 7 Pro20226.7″412 × 8921440 × 31203.5412px base

iPad resolution and viewport sizes

Portrait orientation. Landscape swaps the two values, and Split View or Stage Manager windows make the viewport narrower.

DeviceYearScreenViewport (CSS px)Resolution (px)DPRVW
iPad Pro 13″ (M4·M5)2024~202513″1032 × 13762064 × 275221032px base
iPad Pro 11″ (M4·M5)2024~202511″834 × 12101668 × 24202834px base
iPad Air 13″ (M2 and later)2024~13″1024 × 13662048 × 273221024px base
iPad Air 11″ (M2 and later) · iPad (A16)2024~11″820 × 11801640 × 23602820px base
iPad (10th gen) · iPad Air 4, 52020~202210.9″820 × 11801640 × 23602820px base
iPad mini (A17 Pro) · mini 62021~20248.3″744 × 11331488 × 22662744px base
iPad Pro 12.9″ (1st–6th gen)2015~202212.9″1024 × 13662048 × 273221024px base
iPad Pro 11″ (1st–4th gen)2018~202211″834 × 11941668 × 23882834px base
iPad (7th–9th gen)2019~202110.2″810 × 10801620 × 21602810px base
iPad Pro 10.5″ · iPad Air 32017~201910.5″834 × 11121668 × 22242834px base
iPad (5th, 6th gen) · iPad Air 1, 2 · iPad mini 2–52013~20197.9~9.7″768 × 10241536 × 20482768px 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.

DeviceYearScreenViewport (CSS px)Resolution (px)DPRVW
MacBook Pro 16″ (2021 and later)2021~16.2″1728 × 11173456 × 223421728px base
MacBook Pro 14″ (2021 and later)2021~14.2″1512 × 9823024 × 196421512px base
MacBook Air 15″ (M2 and later)2023~15.3″1710 × 11072880 × 186421710px base
MacBook Air 13″ (M2 and later)2022~13.6″1470 × 9562560 × 166421470px 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.

NameTailwind CSSBootstrap 5
sm640px576px
md768px768px
lg1024px992px
xl1280px1200px
2xl / xxl1536px1400px

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.

NameResolution (px)Ratio
HD (720p)1280 × 72016:9
WXGA1366 × 768≈ 16:9
HD+1600 × 90016:9
FHD (1080p)1920 × 108016:9
WUXGA1920 × 120016:10
UWFHD2560 × 1080≈ 21:9
QHD (1440p)2560 × 144016:9
WQXGA2560 × 160016:10
UWQHD3440 × 1440≈ 21:9
4K UHD (2160p)3840 × 216016:9
5K5120 × 288016:9
8K UHD7680 × 432016: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.

Related tools