Entrada y opciones
Escapa los cinco caracteres críticos de HTML (< > & " ') para que el texto sea seguro de incrustar, o decodifica entidades nombradas, decimales y hexadecimales de vuelta a texto.
Escribe texto a la izquierda para ver el resultado codificado o decodificado.
Todo el cálculo y la conversión se ejecutan en local en el navegador mediante el motor V8 o WebAssembly. Los archivos y el texto nunca salen de tu dispositivo.
Acerca de
Any text that ends up inside HTML — user names, comments, generated markup — must have the angle brackets, ampersand and quotes escaped, or it becomes an injection vector. This tool encodes exactly those characters, and decodes the full entity alphabet back again.
Cómo usar
Formatos y especificaciones
Preguntas frecuentes
Why only five characters?
Those are the characters that can start or terminate tags and attributes. Everything else is safe as literal UTF-8, and escaping more only bloats output.
Does encoding stop XSS?
Escaping is the core defence when untrusted text is placed into HTML body or attribute context. Context matters — never place escaped text inside a script block.
Which entities are decoded?
The common named set (amp, lt, gt, quot, apos, nbsp) plus decimal and hexadecimal numeric forms.
Are unknown entities preserved?
Yes. An entity the decoder does not know is left untouched rather than being dropped.
Are accented or non-ASCII characters encoded?
No. Only the five HTML-critical characters are escaped; every other character, including accented letters and emoji, passes through unchanged.
Limitaciones
- Encoding covers the five critical characters, not the full named-entity alphabet.
- Decoding recognises a practical subset of named entities plus all numeric forms.
- This is not a full HTML sanitiser for whole documents.