Rete/HTTP
User-Agent Parser
Analizzare una stringa User-Agent in browser, motore, sistema operativo e tipo di dispositivo.
The User-Agent string a browser sends with every request looks like a chaotic mix of names and versions, largely because of browsers' historical habit of impersonating each other (nearly every modern browser's string still contains "Mozilla/5.0"). This tool breaks it down into browser, engine, OS, and device type.
How to use it
- Paste a User-Agent string (from your own dev tools console or from server logs) and it's parsed instantly.
- The result shows the browser name and version, the rendering engine, the operating system, and the device type (desktop, mobile, tablet, bot).
- Handy for recognizing bot and crawler strings (Googlebot, Bingbot, etc.), which also send a User-Agent.
Common uses
- Debugging a bug that only shows up in a specific browser or OS — quickly figuring out what the user was actually on from a log entry.
- Analyzing server logs for the share of mobile traffic or outdated browsers among visitors.
- Checking whether a request genuinely came from a legitimate search bot, rather than someone spoofing its User-Agent.
Things to keep in mind
A User-Agent is entirely controlled by the client and easy to spoof — don't rely on it for security decisions.
Under the User-Agent Reduction effort, modern browsers increasingly freeze or simplify OS and device details for privacy — detection accuracy is gradually declining.
Articolo su questo strumento: User-Agent: perché questa stringa è un tale pasticcio
Domande frequenti
Perché così tante stringhe User-Agent menzionano "Mozilla" anche in Chrome o Safari?
È un artefatto storico — i browser hanno continuato ad aggiungere "Mozilla/5.0" alle loro stringhe User-Agent per compatibilità con vecchi controlli server scritti per il primo Netscape Navigator, e la convenzione non è mai scomparsa.
Quanto è affidabile l'analisi dello User-Agent per rilevare il browser e il sistema operativo reali?
Ragionevolmente affidabile nei casi comuni, ma le stringhe User-Agent possono essere falsificate, e alcuni browser ora congelano o semplificano parti della stringa per privacy, quindi il rilevamento non è garantito essere esatto.
La stringa User-Agent che incollo qui viene inviata da qualche parte?
No. L'analisi avviene interamente nel tuo browser — nulla viene caricato su un server.
Cosa sono gli User-Agent Client Hints?
Un'alternativa moderna all'unica stringa User-Agent — un insieme di header separati (Sec-CH-UA, Sec-CH-UA-Platform, ecc.) che il server deve richiedere esplicitamente e riceve in formato strutturato, invece di analizzare un'unica stringa sovraccarica.
Perché alcuni browser nascondono la versione esatta del SO o il modello del dispositivo nello User-Agent?
Fa parte dell'iniziativa "User-Agent Reduction" per la privacy — i dettagli sulla versione del SO o sul modello del dispositivo possono servire a identificare in modo univoco un utente (fingerprinting), quindi i browser semplificano o "congelano" gradualmente queste parti della stringa.