WebmasterID logoWebmasterID
User agents

Safari user agent on iOS and macOS

Safari's user agent is built around WebKit and a Version token, and differs between macOS and iOS. A notable quirk is that iPadOS can present a desktop-class Safari user agent, which can make an iPad look like a Mac in logs. This page covers the pattern and the platform-specific behaviour.

Partially verified

The Safari UA pattern

Safari's user agent contains an AppleWebKit token, a Version token giving the Safari release, and a trailing Safari token. The platform descriptor differs by device — a Macintosh descriptor on macOS, and an iPhone or iPad descriptor on iOS.

To distinguish Safari from Chrome, look for the Safari and Version tokens without a Chrome token, since Chrome also carries AppleWebKit and Safari tokens for compatibility.

The iPadOS desktop-class quirk

Since iPadOS began requesting desktop-class web pages by default, an iPad can present a user agent shaped like desktop Safari on macOS. This is intentional, so iPads receive desktop layouts, but it means UA-based device detection can count an iPad as a Mac.

If accurate tablet-vs-desktop counts matter, do not rely on the raw user agent alone for iPadOS. The exact current token shape is best confirmed against Apple's developer documentation, since Safari's UA details evolve.

How it appears in analytics and logs

A user agent with WebKit plus a Safari Version token but no Chrome token is typically Safari. On iPadOS, a desktop-class request can carry a Macintosh-shaped string, so an iPad may appear as a Mac.

Diagnostic use case

Recognise Safari traffic across macOS, iPhone, and iPad, and account for the iPadOS desktop-class user agent so you do not undercount tablets as desktops.

What WebmasterID can help detect

WebmasterID recognises Safari and WebKit-based clients server-side and records a coarse browser/platform category, so the iPadOS desktop-class quirk does not silently misclassify tablet traffic.

Common mistakes

Privacy and accuracy notes

Safari's UA describes the browser, not a person. Apple has long minimised the entropy in Safari's user agent for privacy. WebmasterID records a coarse browser category rather than the raw visitor string.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.