Apple iPhone 5 – Viewport, Resolution & Specs

The Apple iPhone 5 is one of the most popular modern smartphones for web designers and front-end developers to test responsive layouts.
If you want to check how your website looks and behaves on this device, you can easily simulate it using the Phone Simulator – Mobile Emulator Tool Chrome extension — no real device required.
Viewport Size (CSS Resolution)
This is the resolution that matters most to designers and developers — it defines media query breakpoints, layout scaling, and how elements adapt to the screen.
For the Apple iPhone 5, the CSS viewport measures:
- Width: 320 px
- Height: 568 px*
ℹ️ Note: The visible height can vary slightly depending on the browser UI (Safari, Chrome, etc.).
Test on Apple iPhone 5 Instantly
Preview your responsive website on the Apple iPhone 5 right inside your browser.
Install the Phone Simulator – Mobile Emulator Tool and test across 30+ mobile devices with just two clicks. It’s fast, free, and doesn’t require any external services.

Pixel Density (Device Pixel Ratio)
The Apple iPhone 5 has a device pixel ratio of 2 — meaning each CSS pixel is represented by three physical pixels.
This ensures sharper visuals, crisper text, and smoother icons on high-resolution displays.
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
Based on its pixel density, the manufacturer’s screen resolution equals:
- Width: 640 px
- Height: 1136 px
About the Apple iPhone 5
The Apple iPhone 5 released in 2012.
The iPhone 5 introduced Apple’s first larger display and a more refined aluminum body, defining a new era of design.
Using the Phone Simulator – Mobile Emulator Tool, developers can preview websites exactly as they would appear on this device — helping ensure a consistent user experience across screens.
Try It Now 💫
Start testing your website on the Apple iPhone 5 and other smartphones and tablets directly in Chrome.
No physical devices, no setup — just realistic mobile previews.