Codificador/Decodificador de Entidades HTML
Converte caracteres especiais em entidades HTML e faz o caminho inverso.
What is HTML Entity Encoder / Decoder?
HTML Entity Encoder / Decoder converts special characters to their HTML entity equivalents (e.g. < ↁE<)
and decodes them back. This prevents XSS (cross-site scripting) vulnerabilities when rendering user-supplied content in HTML.
How to use
- Paste your text into the input box.
- Click Encode to convert special HTML characters to entities.
- Click Decode to convert HTML entities back to characters.
- Copy the result with the Copy button.
Common HTML entities
&ↁE&<ↁE<>ↁE>"ↁE"'ↁE' ↁEnon-breaking space
FAQ
- Why do I need to encode HTML entities?
- Characters like
<,>, and&have special meaning in HTML. If user input containing these characters is inserted into HTML without encoding, a browser may execute it as code Ea cross-site scripting (XSS) attack. - Should I encode all characters?
- Generally you only need to encode the five critical characters:
&,<,>,", and'. Over-encoding regular text can make it harder to read in source code. - What is the difference between named and numeric entities?
- Named entities like
&use a descriptive name. Numeric entities like&(decimal) or&(hex) use the Unicode code point. Both represent the same character.
Embed this tool
Paste this iframe into any HTML page to embed Codificador/Decodificador de Entidades HTML on your site:
Ferramentas relacionadas
-
Gerador de UUID
Gera UUID v4 aleatórios para apps, APIs e bancos de dados.
-
Conversor de Timestamp Unix
Converte timestamps Unix para datas legíveis e vice-versa.
-
Formatador e Validador JSON
Formata e valida JSON com indentação legível e erros claros.
-
Gerador de Hash (SHA-256 / SHA-1 / MD5)
Gera hashes de texto comuns incluindo SHA-256, SHA-1 e MD5.
-
Testador de Expressão Regular
Testa padrões regex com flags e exibe correspondências e grupos.