Codificador/Decodificador HTML

Online HTML Entity Encoding and Decoding Tool, featuring smart automatic detection, three encoding formats, file upload and download, and a reference table of over 200 HTML entities

Input Text

Output Result

🔌 Quick Insert HTML Entity

👁️ Visual Preview — How encoded output renders in browser

Collapse ▲
After encoding input text, the actual rendering will appear here
Input Chars:0
Output Chars:0
Time:0 ms
Change:+0%

📚 HTML Entity Reference (Click to Expand)

What is HTML entity encoding/decoding?

Entidade HTMLé uma sequência de texto que começa com&e termina com;, usado para exibir caracteres reservados em documentos HTML (como<, >), ou para representar caracteres difíceis de digitar no teclado (como©, ).

Codificar: Substitui caracteres especiais em HTML pelas entidades HTML correspondentes, impedindo que o navegador os interprete como tags HTML.

Decodificar: Converte as entidades HTML de volta aos seus caracteres originais, facilitando a visualização e a edição do conteúdo propriamente dito.

6 caracteres que devem ser escapados

PersonagemEntidade NomeadaEntidade decimalEntidade hexadecimalDescrição
&&amp;&#38;&#x26;E comercial
<&lt;&#60;&#x3C;Menos de
>&gt;&#62;&#x3E;Maior que
"&quot;&#34;&#x22;Aspas duplas
'&apos;&#39;&#x27;Single quote

Common Use Cases

  • XSS Prevention — Encode <> in user input to safely embed into HTML pages
  • Display Code on Web Pages — Show HTML code snippets without the browser rendering them as actual elements
  • Secure Data Transmission — Encode text containing special characters before storage or transmission
  • Template Development — Encode dynamic HTML content when embedding it in templates