Device Viewport Sizes: iPhone, iPad, Mac and Android

A device's viewport is the width and height, in CSS pixels, that a web page is laid out in. It is smaller than the screen resolution on high-density displays: the iPhone 17 Pro / 17 / 16 Pro has a 402 × 874 viewport. This page lists the viewport of 30 current devices, and the image size the URLBooth screenshot API produces at each one.

Last updated:

What is the difference between viewport size and screen resolution?

Screen resolution counts physical pixels. Viewport size counts CSS pixels, the unit that width, @media queries and window.innerWidth use. On a high-density screen one CSS pixel is drawn with two or three physical pixels in each direction, so the viewport is a half or a third of the resolution. Responsive layouts depend only on the viewport, which is why a design breakpoint of 768 px matches an iPad and not a phone with a 1,179 px wide panel.

What are the viewport sizes of common devices?

Sizes are in CSS pixels, width × height. The last column is the pixel size of a URLBooth screenshot at that preset: phones, tablets and MacBooks are captured at 2x so text stays sharp, and standard sizes and large desktop displays at 1x. The id is the value to send as device in the API.

Standard sizes

Generic sizes for when you want a common desktop, laptop, tablet or phone layout instead of one specific product.

DeviceViewport (CSS px)Screenshot (px)API id
Desktop1440 × 10001440 × 1000desktop
HD1280 × 7201280 × 720hd
Laptop1366 × 7681366 × 768laptop
Laptop wide1536 × 8641536 × 864laptop-wide
Full HD1920 × 10801920 × 1080full-hd
QHD2560 × 14402560 × 1440qhd
Tablet768 × 10241536 × 2048tablet
Mobile390 × 844780 × 1688mobile

Mac

MacBook and iMac sizes are the default scaled display mode, which is the viewport a full-screen browser window reports.

DeviceViewport (CSS px)Screenshot (px)API id
MacBook Air 13″1470 × 9562940 × 1912macbook-air-13
MacBook Air 15″1710 × 11073420 × 2214macbook-air-15
MacBook Pro 14″1512 × 9823024 × 1964macbook-pro-14
MacBook Pro 16″1728 × 11173456 × 2234macbook-pro-16
iMac 24″2240 × 12602240 × 1260imac-24
Studio Display2560 × 14402560 × 1440studio-display

iPhone

iPhone sizes are Apple's published point sizes, the width and height that CSS media queries see in portrait.

DeviceViewport (CSS px)Screenshot (px)API id
iPhone 17 Pro Max / 16 Pro Max440 × 956880 × 1912iphone-17-pro-max
iPhone 17 Pro / 17 / 16 Pro402 × 874804 × 1748iphone-17-pro
iPhone Air420 × 912840 × 1824iphone-air
iPhone 16 Plus / 15 Plus430 × 932860 × 1864iphone-16-plus
iPhone 16 / 15 / 15 Pro393 × 852786 × 1704iphone-16
iPhone 16e / 14 / 13390 × 844780 × 1688iphone-16e
iPhone 13 mini375 × 812750 × 1624iphone-13-mini
iPhone SE375 × 667750 × 1334iphone-se

iPad

iPad sizes are Apple's published point sizes in portrait.

DeviceViewport (CSS px)Screenshot (px)API id
iPad Pro 13″1032 × 13762064 × 2752ipad-pro-13
iPad Pro 11″834 × 12101668 × 2420ipad-pro-11
iPad Air 13″1024 × 13662048 × 2732ipad-air-13
iPad Air 11″ / iPad820 × 11801640 × 2360ipad-air-11
iPad mini744 × 11331488 × 2266ipad-mini
iPad 9th gen810 × 10801620 × 2160ipad-classic

Android

Common Android phone viewports in portrait, as reported to CSS by Chrome.

DeviceViewport (CSS px)Screenshot (px)API id
Android phone412 × 915824 × 1830android
Android compact360 × 800720 × 1600android-compact

How do you capture a website at a specific device size?

Send the device id with the URL. The page is loaded at that exact viewport, with touch emulation on phones and tablets, and the response body is the image. Add "frame": true to draw the capture inside the matching hardware, or "fullPage": true to capture the whole scrollable page at that width.

curl example
curl --fail-with-body "https://urlbooth.com/v1/screenshots" \
-H "Authorization: Bearer $URLBOOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","device":"iphone-17-pro","format":"png"}' \
-o iphone-17-pro.png

The API needs a Pro key (see pricing). Every option is described in the API reference, and the screenshot API guide walks through a first request.

How were these sizes chosen, and what are the limits?

  • iPhone and iPad sizes are the point sizes Apple publishes for each model. Mac sizes are the default scaled mode, not the panel's native resolution.
  • All sizes are portrait for phones and tablets and assume a full-screen browser. Real browsers subtract toolbars, so the visible area on a device can be shorter.
  • The screenshot scale is a capture setting, not the hardware's pixel ratio: every phone and tablet preset is captured at 2x, including phones whose screens are 3x.
  • Captures are made in a Chromium browser with the device's viewport and touch support. This reproduces the responsive layout, not Safari's rendering engine.