HTML Entity Encoder / Decoder
Escape and unescape HTML entities — safely, in your browser.
How to use
Pick Encode or Decode, paste your text, and the result appears below. Click Copy to grab it.
About this tool
Convert special characters to HTML entities (encode) or turn entities back into characters (decode). Encoding escapes characters like <, >, &, and quotes so text renders literally instead of as markup. Everything runs locally in your browser — nothing is uploaded.
What you can use HTML Entity Encoder / Decoder for
- Escape a code snippet so it renders literally in HTML
- Decode entity-encoded text copied from a web page
- Sanitize user-facing strings for display
- Convert special symbols to numeric entities
Frequently asked questions
What does encoding do?
It replaces characters that have meaning in HTML — such as <, >, &, and quotes — with their entity equivalents (like <) so they display as text instead of being parsed as markup.
Which entities does decode understand?
It decodes the common named entities (&, <, >, ", ', , and more) plus numeric entities in both decimal (©) and hexadecimal (©) form.
Is my input sent anywhere?
No — encoding and decoding happen entirely in your browser.