Category: Developer tools
HTML Encoder / Decoder
Escape and unescape HTML entities safely
Convert characters such as < > & " into HTML entities, or turn entities back into plain characters. No HTML is executed.
Result
The result will appear here.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Escaping HTML replaces the characters that browsers treat as markup with entity references, so user text is displayed rather than interpreted. It is the standard way to show code samples on a page and a basic defence against injected markup.
How to use it
- Paste the HTML or plain text you want to convert.
- Press Encode to escape it, or Decode to expand entities back.
- Copy the result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Which characters are escaped?
- The five that matter for markup: & < > " and '. Decoding additionally understands numeric and hexadecimal entity references.
- Is the HTML rendered or executed?
- No. The text is treated as a string and mapped through a lookup table, so nothing is parsed as markup.