Rede/HTTP
User-Agent Parser
Analisar uma string de User-Agent em navegador, motor, sistema operacional e tipo de 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.
Artigo sobre esta ferramenta: User-Agent: por que essa string é tão confusa
Perguntas frequentes
Por que tantas strings de User-Agent mencionam "Mozilla" mesmo no Chrome ou Safari?
Isso é um artefato histórico — os navegadores continuaram adicionando "Mozilla/5.0" às suas strings de User-Agent por compatibilidade com verificações antigas de servidor escritas para o primeiro Netscape Navigator, e a convenção nunca desapareceu.
Quão confiável é a análise de User-Agent para detectar o navegador e o SO reais?
Razoavelmente confiável para casos comuns, mas strings de User-Agent podem ser falsificadas, e alguns navegadores agora congelam ou simplificam partes da string por privacidade, então a detecção não tem garantia de ser exata.
A string de User-Agent que colo aqui é enviada para algum lugar?
Não. A análise acontece inteiramente no seu navegador — nada é enviado a um servidor.
O que são User-Agent Client Hints?
Uma alternativa moderna à string única de User-Agent — um conjunto de cabeçalhos separados (Sec-CH-UA, Sec-CH-UA-Platform, etc.) que o servidor precisa solicitar explicitamente e recebe em formato estruturado, em vez de analisar uma única string cheia de informações.
Por que alguns navegadores ocultam a versão exata do SO ou o modelo do dispositivo no User-Agent?
Faz parte da iniciativa "User-Agent Reduction" por privacidade — detalhes da versão do SO ou do modelo do dispositivo podem ser usados para identificar unicamente (fingerprinting) um usuário, então os navegadores vêm simplificando ou "congelando" gradualmente essas partes da string.