HTML entity encoder
Escape text as HTML entities, or decode entities such as & and ' back into characters.
Missing a feature or found a bug in HTML entity encoder? Tell me on X (@_andrewtran) or by email.
How to use HTML entity encoder
- Choose Encode or Decode.
- Paste your text or HTML in the input pane.
- Copy the result from the output pane.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Which characters are encoded?
The five that matter in HTML: the ampersand, the two angle brackets and both quote marks. You can also encode every non-ASCII character.
Which entities can be decoded?
All numeric entities, decimal or hex, and the common named ones. A name that is not known is left as it is.
Related tools
Text to hex converter
Convert text to hexadecimal UTF-8 bytes, or decode hex back into text.Text to binary converter
Convert text to 8-bit binary, or decode binary back into text.Text to octal converter
Convert text to octal byte values, or decode octal values back into text.Text to ASCII codes
Convert characters to their decimal byte values, or turn a list of codes back into text.