
Apple iPhone 5 Simulator — Viewport, Resolution & CSS Specs
Test your website on Apple iPhone 5 in one click – no real device required.
- Free
- 9,000+ users
The Apple iPhone 5 is a popular device among web developers and designers for testing responsive layouts and mobile UI behavior.
It introduced Apple’s first larger display and a more refined aluminum body, defining a new era of design. Year of release: 2012.
Why Test on Apple iPhone 5?
Viewport
Very small viewport exposes legacy breakpoint and spacing issues.
Pixel Density (DPR)
Lower resolution highlights missing image optimizations.
Performance & Animations
Hardware constraints reveal heavy scripts and layouts.
Viewport Size (CSS Resolution)
The CSS viewport defines how media queries, layout breakpoints, and responsive components behave.
For Apple iPhone 5, the CSS viewport measures:
- Width: 320 px
- Height: 568 px
ℹ️ The visible height can vary slightly depending on the browser UI (Safari, Chrome, etc.).
Some analytics platforms only display the physical screen resolution (see below) instead of the CSS viewport size, so keep that in mind when interpreting results.
To see exactly how this viewport behaves in real conditions, you can simulate Apple iPhone 5 directly in your browser using Phone Simulator.
Test on Apple iPhone 5 Now
Accurate viewport simulation directly in your browser.
- No account required
- 30+ devices included
- Works offline
- Free
- 9,000+ users

Pixel Density (Device Pixel Ratio)
Apple iPhone 5 has a device pixel ratio of 2.
Each CSS pixel is rendered using 2 physical pixels, resulting in sharper text and images.
For CSS targeting:
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
/* High-DPI specific styles */
}In JavaScript:
window.devicePixelRatio;
// returns: 2Physical Screen Resolution
Physical resolution refers to the actual number of hardware pixels on the display. While it does not affect CSS layouts, it is commonly shown in analytics and device specifications.
- Width: 640 px
- Height: 1136 px
ℹ️ Physical resolution is not used for CSS layouts but is often shown in analytics tools.
More Devices for Mobile Testing

Google Pixel 9
✅ Ready to Simulate in Extension
6.3-inch smartphone released in 2024, featuring 360x808px viewport resolution, 3x pixel density display
See full specifications

Apple iPhone 16
✅ Ready to Simulate in Extension
6.1-inch smartphone released in 2024, featuring 393x852px viewport resolution, 3x pixel density display
See full specifications

Honor Magic7 Pro
6.8-inch smartphone released in 2024, featuring 427x933px viewport resolution, 3x pixel density display
See full specifications