iPhone

iPhone 17 vs iPhone 17e: screen size for websites

The iPhone 17 is 12px wider and 30px taller in CSS pixels. Small enough that most layouts behave the same, but fixed widths between 390 and 402px will spill on the narrower one.

iPhone 17iPhone 17e
CSS viewport402 × 874390 × 844
Visible on first load402 × 718 (Safari (iOS 26))390 × 703 (Safari (iOS 26))
Device pixel ratio33
Physical resolution1206 × 26221170 × 2532
Screen size6.3″6.1″
Aspect ratio19.6:919.5:9
Tailwind breakpointbase styles onlybase styles only
Bootstrap tierxsxs
Full-width image needs1206px1170px
Released20252026

See your site on both, side by side

Paste your address (or localhost:3000). doesitfit shows it on the iPhone 17 and iPhone 17e at their exact sizes, next to each other.

Free, no sign-up. Or ask Claude, ChatGPT or Codex to check it.

What the difference means for your site

Width: 402px vs 390px

Headings and buttons wrap differently: a line that fits in 402px can break onto two lines in 390px. Anything with a fixed width between the two makes the narrower screen scroll sideways (fix it).

Height: 874px vs 844px

On first load a page shows 718px on the iPhone 17 and 703px on the iPhone 17e, so “above the fold” differs by 15px.

Questions people ask

Is the iPhone 17 screen bigger than the iPhone 17e for websites?

The iPhone 17 is 12px wider and 30px taller in CSS pixels. Small enough that most layouts behave the same, but fixed widths between 390 and 402px will spill on the narrower one.

What are the viewport sizes of the iPhone 17 and iPhone 17e?

iPhone 17: 402 × 874 CSS px (DPR 3). iPhone 17e: 390 × 844 CSS px (DPR 3).

Do I need to test my site on both?

Yes if your layout has anything close to 402px wide. Test the narrower one first: it’s where things spill.

More comparisons