Escape HTML special characters (&, <, >, double and single quotes) to show literal text inside a page or an attribute without it being parsed as markup. Optionally convert everything non-ASCII into &#x…; numeric references.
It also works in reverse: numeric references and the most common named entities become text. The result is always shown as text: nothing is rendered as HTML.
How to use it
- Choose Encode or Decode.
- Paste the text or HTML.
- Press Run.
Example
<a href="/buscar?q=1&r=2">Café "La Ñ"</a> <a href="/buscar?q=1&r=2">Café "La Ñ"</a> Limitations
- Decoding recognizes a documented subset of named entities (&, , é, €…); unknown ones are left intact and reported.
- Escaping is necessary but not sufficient against XSS in JavaScript, CSS or URL contexts.
FAQ
- Do I need to escape quotes?
- Yes, when the text goes inside an attribute. This tool always escapes " as " and ' as '.
- Is it safe to paste HTML with scripts?
- Yes: the HTML is never executed or rendered, only treated as text.