JSON to PHP Array
Convert JSON into a PHP array literal or a typed class you can paste into a project.
See your own user agent string and what a server can tell from it.
Everything on this page is read by JavaScript in your own browser and displayed here. None of it is sent anywhere by this page — though your user agent is of course sent with every request you make.
This page shows your own user agent string parsed into its parts, alongside everything else a site can read about your browser without asking permission — screen size, language, time zone, cores and more.
Shows the user agent string your browser is sending right now, parsed into its browser, version, engine, operating system and device — with a copy button, because the usual reason to want it is to paste it into a bug report or a test.
Underneath, it lists the other things a site learns about your browser without asking: screen and window size, device pixel ratio, colour depth, language preferences, time zone, whether cookies and Do Not Track are enabled, the number of processor cores reported, and whether the browser offers the newer Client Hints that are gradually replacing the user agent string. It is a useful reminder of how much is available before any permission is requested.
The usual reason to want your user agent is to paste it somewhere, so it copies in one click.
Browser, version, engine, operating system and device, extracted from the string.
Screen and window size, pixel ratio, colour depth, languages, time zone, cookie support and reported core count.
Where the browser supports them, the newer headers that are gradually replacing the user agent string are listed too.
Everything is read and displayed locally by JavaScript; this page transmits none of it.
It is detected automatically when the page loads.
Browser, engine, operating system and device class, parsed out of the string.
Screen size, language, time zone and more, all readable without permission.
One click puts the string on your clipboard for a bug report or a test.
Usually for a bug report, a support ticket, or to reproduce a browser-specific problem. It is also what you would paste into a testing tool to emulate your setup.
Yes. Browser developer tools have a device emulation mode that overrides it, and extensions can set it permanently. Servers have no way to tell.
Not by this page. Everything shown is read by JavaScript in your browser and displayed locally. Your user agent is of course sent with every request you make anywhere.
A newer mechanism where the browser sends small, specific headers about itself instead of one long string, and only when a site asks. Chrome is gradually reducing the detail in its user agent in favour of them.
What people who use the My User Agent think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the My User Agent. It takes half a minute and no account.
Write the first reviewConvert JSON into a PHP array literal or a typed class you can paste into a project.
Build and edit URL query strings without breaking the encoding.
Generate plausible addresses in the format each country actually uses.
Turn a JSON object into a TOML document with proper tables and arrays of tables.
Parse Set-Cookie and Cookie headers, and check the security flags.
Draft a GraphQL type definition from a sample JSON response.
Press any key and see event.key, event.code and the modifier state.
Build a valid package.json with scripts, exports and metadata.