iPhone 17
Full device reference for the iPhone 17, including viewport size, native resolution, pixel density, DPR, and supporting responsive-design details.
Quick summary
Viewport
402 x 874 PX
Resolution
1206 x 2622 PX
Density
460 PPI
DPR
3 XXHDPI
Viewport
402 x 874 PX
Resolution
1206 x 2622 PX
Density
460 PPI
DPR
3 XXHDPI
Our verdict on the iPhone 17
The iPhone 17 brings the standard iPhone up to the Pro's screen: a 6.3-inch 1206 × 2622 OLED panel at 460 PPI, rendered at a device pixel ratio of 3 as a 402 × 874 CSS viewport. The bigger change for anyone maintaining a site is the step from the iPhone 16, which our database lists at 393 × 852 and 60 Hz. The standard model now reports 9 px more width and 22 px more height, and joins the Pro models in the 402 px class.
Together with the iPhone Air, it is also the first non-Pro iPhone in our database with a 120 Hz panel. Scroll-linked animations, parallax and CSS transitions that were only ever checked at 60 Hz on a standard iPhone now deserve a pass on the cheaper model as well as the Pro, and if your audience spans both generations, test at both refresh rates.
Its strengths are the A19 chip, 8 GB of RAM, an IP68 rating and 25 W MagSafe charging. The trade-off for a test bench is that it adds no new layout width: for breakpoints it behaves exactly like the iPhone 17 Pro, so you need only one of the two, and the iPhone 17 is the cheaper route to the 402 px viewport. Apple does not publish battery capacity in mAh, and we have not measured battery life, so we make no claim about it.
Desk research from published specifications; not a hands-on review. Last reviewed .
What this device means for responsive design
The iPhone 17 uses a viewport of 402 x 874 PX, which makes it a key target for mobile layout testing. Designers and developers should rely on the viewport value for CSS breakpoints, while the native resolution and DPR help explain image sharpness and rendering density.
Example breakpoint
@media (max-width: 402px) {
/* target layouts around iPhone 17 width */
}Display profile
Detailed specifications
A clean reference table for the most important device and display values.
Official launch specs
From Apple Support (Tech Specs): official announcement and specifications
Responsive design notes
Use the viewport for layout decisions, the native resolution for asset planning, and the DPR when understanding how CSS pixels map to physical pixels.
Use viewport for CSS
Focus on 402 x 874 PX when planning breakpoints and layout widths.
Use resolution for assets
The native 1206 x 2622 PX resolution helps guide image export sizes and display sharpness.
Use DPR for scaling
A DPR of 3 XXHDPI means this screen maps multiple physical pixels to one CSS pixel.
Related guides
Fast Charging Explained: 25W vs 45W vs 100W — What Actually Charges Faster?
What charging watts measure, why charging slows as the battery fills, why the adapter matters, and how to read fast-charge claims.
Read guideRefresh Rate Explained: 60Hz vs 90Hz vs 120Hz vs 144Hz
What refresh rate measures, fixed vs adaptive ProMotion and LTPO screens, and what a higher rate changes in scrolling, gaming and video.
Read guideFrom the Blog
What Is PPI and Why Does It Matter for Screens?
PPI is the single number that determines whether a screen looks razor-sharp or grainy. Learn how it is calculated and what it means for this device.
Read articleCSS Pixels vs Physical Pixels: The Complete Developer Guide
Your screen has millions of hardware dots. Your CSS has none of them. Learn how Device Pixel Ratio bridges the gap.
Read articleFrequently Asked Questions
What is the screen resolution of the iPhone 17?
The iPhone 17 has a 1206 x 2622 PX screen resolution on a 6.3 INCH display, resulting in a pixel density of 460 PPI.
What is the CSS viewport size of the iPhone 17?
The iPhone 17 has a CSS viewport of 402 x 874 PX. This is the value returned by window.innerWidth and window.innerHeight in JavaScript, and the value that CSS media queries respond to.
What CSS media query should I use for the iPhone 17?
To target the iPhone 17 viewport, use: @media (max-width: 402px). For a mobile-first approach, this targets the device at and above its viewport width.
What is the pixel density (PPI) of the iPhone 17?
The iPhone 17 has a pixel density of 460 PPI, which corresponds to a device pixel ratio (DPR) of 3. This means CSS pixels are scaled up to produce crisp, high-resolution rendering on the physical display.