Codificador e decodificador HTML
Converta referências HTML e Unicode imprimível localmente.
- Prepare a entrada
Escolha as opções adequadas usando os controles abaixo.
- Execute a tarefa
Ajuste os controles abaixo e confira a prévia.
- Use o resultado
Confira o resultado e use os controles disponíveis para copiar ou baixar.
Escopo e limites
Codifica caracteres HTML ou Unicode imprimível. Decodifica uma vez pelas regras HTML; tags permanecem texto. Exclui NUL, substitutos isolados e controles C1 na codificação. Conversão de texto, não sanitização HTML.
Resultado
Preencha os campos e execute a operação para ver o resultado.
Codificador e decodificador HTML
Convert text locally between literal characters and HTML character references. Encode ampersands, angle brackets, quotes and apostrophes as special references, or encode supported Unicode code points as decimal or hexadecimal references; decode references with a single pass. Input is limited to 100,000 characters and unsupported control or surrogate code points are rejected. This is an encoder/decoder, not an HTML sanitizer or parser.
Recursos
- Encode special HTML characters with named or numeric references.
- Choose decimal or hexadecimal output for supported Unicode characters.
- Decode character references once while keeping literal tags as text.
- Process up to 100,000 characters locally and copy the result.
Como usar
- Paste the text to convert.
- Choose encode or decode and select special, decimal or hexadecimal output when encoding.
- Run the conversion and review the exact references or decoded text.
- Copy the result into the context where it will be used and validate that context separately.