HTML Encoder / Decoder
Encodes and decodes HTML entities, escaping and unescaping special characters.
Input
Output
Enter some text.
Runs entirely in your browser. Your input is not uploaded or stored.
How to use this calculator
- Pick Encode or Decode and paste your text.
- Copy the converted output.
How it works
Encoding replaces &, <, >, " and ' with HTML entities; decoding reverses it. Useful for safely showing code in HTML.
Worked example
Encode. <b> becomes <b>.
Tips
- Runs entirely in your browser. Your input is not uploaded or stored.
Frequently asked questions
When do I need this?
To display literal HTML/code on a web page, or to clean entity-encoded text.
Privacy?
Runs entirely in your browser. Your input is not uploaded or stored.
Related tools
- URL Encoder / Decoder
- Base64 Encoder / Decoder
- Markdown to HTML Converter
- HTML to Markdown Converter
- JWT Decoder
- Cron Expression Parser
Explore more in PDF, Image, File, Data & Developer Tools.
Cite this tool
Zerdly. (2026). HTML Encoder / Decoder. Retrieved from https://www.zerdly.com/tools/html-encoder-decoder/
Tip: Enter any known values to calculate the remaining results.
All calculations run in your browser. Your inputs are never saved or transmitted.



