
Apple iPhone 5 Simulator & Emulator — Viewport, Resolution & CSS Specs
Test your website on Apple iPhone 5 in one click — no real device required.
- Free
- 10,000+ users
Apple iPhone 5 is a popular device to simulate and emulate among web developers and designers for testing responsive layouts and mobile UI behavior. Year of release: 2012.
Why Test on Apple iPhone 5?
Viewport
Very small viewport exposes legacy breakpoint and spacing issues.
Pixel Density (DPR)
Standard pixel density reveals blurry images and icon scaling issues on screen.
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.
To see exactly how this viewport behaves in real conditions, you can simulate Apple iPhone 5 directly in your browser using Phone Simulator.
Free Apple iPhone 5 Simulator & Emulator
Accurate viewport simulation directly in your browser.
- No account required
- 40+ devices included
- Works offline
- Free
- 10,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.
Frequently Asked Questions
What is the viewport size of Apple iPhone 5?
Apple iPhone 5 has a viewport size of 320×568 CSS pixels.
How can I test my website on Apple iPhone 5?
You can simulate it instantly using the Phone Simulator Chrome extension - no real device required.
How is Phone Simulator better than Chrome DevTools for Apple iPhone 5?
DevTools shows an approximate viewport size, but does not emulate the real mobile browser. Phone Simulator uses exact device characteristics and shows how your site renders in a real mobile browser environment.
Can I test localhost with Phone Simulator on Apple iPhone 5?
Yes. Phone Simulator works with any local URL, including localhost:3000, 127.0.0.1, and similar development setups.
Do I need to buy a Apple iPhone 5 for testing?
No. Phone Simulator provides accurate device simulation for $0 instead of spending $99+ on a physical device.
More Devices for Mobile Testing

Apple iPad 10.2 (9th gen)
✅ Ready to Simulate in Extension
10.2-inch smartphone released in 2021, featuring 810x1080px viewport resolution, 2x pixel density display
See full specifications

Samsung Galaxy Tab S10 Plus
✅ Ready to Simulate in Extension
12.4-inch smartphone released in 2024, featuring 876x1400px viewport resolution, 2x pixel density display
See full specifications

Xiaomi 17 Ultra
✅ Ready to Simulate in Extension
6.9-inch smartphone released in 2026, featuring 400x869px viewport resolution, 3x pixel density display
See full specifications