Codificador de entidades HTML
Codificar entidades HTML
Funciona no seu navegador · Sem upload
A ferramenta e as instruções desta página estão em inglês por enquanto. Ela funciona do mesmo jeito: tudo roda no seu navegador.
Seu navegador é antigo demais para esta ferramenta. Atualize-o ou use uma versão recente do Chrome, Edge, Firefox ou Safari.
- Nada sai do seu dispositivo
- Sem limites de tamanho impostos por servidor
- Sem cadastro, sem marca d’água
- Grátis
How to encode HTML entities
- Paste your text or code.
- Choose whether to escape quotes and how to write non-ASCII characters.
- Copy the encoded result.
Which characters?
- Always: & < > (and " ' for attribute values).
- Characters such as é, © or emoji only need encoding if the page isn't UTF-8. Choose named (é), decimal (é) or hexadecimal (é) entities.
Perguntas frequentes
Is this enough to prevent XSS?
Escaping is the right step for text placed inside HTML elements and quoted attributes. Inside JavaScript, URLs or CSS, other rules apply; use your framework's escaping for those.
Is my text uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.