iPhone Viewport Sizes: Complete Guide
This comprehensive guide provides detailed viewport sizes and screen resolutions for all iPhone models. Essential information for web developers and designers working on responsive websites and applications.
Viewport Sizes Table
Model | Viewport Size | Screen Resolution | DPR | Release Year |
---|---|---|---|---|
iPhone 16 Pro Max | 430 × 932 | 1290 × 2796 | 3 | 2024 |
iPhone 16 Pro | 393 × 852 | 1179 × 2556 | 3 | 2024 |
iPhone 16 Plus | 428 × 926 | 1284 × 2778 | 3 | 2024 |
iPhone 16 | 390 × 844 | 1170 × 2532 | 3 | 2024 |
iPhone 15 Pro Max | 430 × 932 | 1290 × 2796 | 3 | 2023 |
iPhone 15 Pro | 393 × 852 | 1179 × 2556 | 3 | 2023 |
iPhone 15 Plus | 428 × 926 | 1284 × 2778 | 3 | 2023 |
iPhone 15 | 390 × 844 | 1170 × 2532 | 3 | 2023 |
iPhone 14 Pro Max | 430 × 932 | 1290 × 2796 | 3 | 2022 |
iPhone 14 Pro | 393 × 852 | 1179 × 2556 | 3 | 2022 |
iPhone 14 | 390 × 844 | 1170 × 2532 | 3 | 2022 |
iPhone 13 Pro Max | 428 × 926 | 1284 × 2778 | 3 | 2021 |
iPhone 13 Pro | 390 × 844 | 1170 × 2532 | 3 | 2021 |
iPhone 13 | 390 × 844 | 1170 × 2532 | 3 | 2021 |
iPhone 13 mini | 375 × 812 | 1080 × 2340 | 3 | 2021 |
iPhone 12 Pro Max | 428 × 926 | 1284 × 2778 | 3 | 2020 |
iPhone 12 Pro | 390 × 844 | 1170 × 2532 | 3 | 2020 |
iPhone 12 | 390 × 844 | 1170 × 2532 | 3 | 2020 |
iPhone 12 mini | 375 × 812 | 1080 × 2340 | 3 | 2020 |
Understanding Viewport Sizes
Viewport Basics
When designing for devices, it's important to understand the difference between viewport sizes and screen resolutions:
- Viewport Size: The visible area in CSS pixels that your website can use
- Screen Resolution: The actual number of physical pixels on the device
- Device Pixel Ratio (DPR): The ratio between physical pixels and CSS pixels
Design Considerations
- Consider different screen sizes and densities
- Consider various aspect ratios
- Optimize for different orientations
- Test on multiple devices
- Consider foldable and dual-screen devices
Technical Implementation
- Implement proper viewport meta tags
- Use CSS media queries effectively
- Consider safe area insets
- Optimize for different DPR values