Safari on iPhone user agent string
Since iOS 26, Safari reports a frozen OS version ("iPhone OS 18_7") instead of the real one, so iOS 27 devices send it too. Only Version/ reflects the Safari release. Below is a sample user agent string and what each part means.
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1
At a glance
| Browser | Mobile Safari 27.0 |
| Engine | WebKit 605.1.15 |
| Operating system | iOS 18.7 |
| Device | Phone |
String breakdown
| Fragment | Meaning |
|---|---|
Mozilla/5.0 | Historical compatibility token. Nearly every browser claims "Mozilla/5.0" so that old servers do not serve it broken pages. |
iPhone | iPhone. |
CPU iPhone OS 18_7 like Mac OS X | iPhone system token: iOS 18.7. Frozen since iOS 26 — the real version appears in the Version/ fragment. |
AppleWebKit/605.1.15 | Frozen WebKit token: Safari has reported 605.1.15 for years, and browsers that copy Safari's format send the same value, whatever the real engine version. |
KHTML, like Gecko | Compatibility note: the engine descends from KHTML and behaves like Gecko. Kept for legacy browser sniffers. |
Version/27.0 | The browser's real version: 27.0 (mainly used by Safari). |
Mobile/15E148 | Fixed build identifier: Safari and other iOS browsers and apps send Mobile/15E148 whatever the real iOS build. |
Safari/604.1 | Safari/WebKit build 604.1 — a compatibility token, not the Safari version. Chromium browsers send it too. |
Other forms of this user agent
Request desktop website
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15
Use it in code
curl
curl -A "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1" https://example.comPython (requests)
import requests
requests.get("https://example.com", headers={"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1"})Playwright (Node.js)
const context = await browser.newContext({ userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1" });
Source: Safari 26.0 Release Notes · checked September 2026