HTML Entity Encoder / Decoder
Escape and unescape HTML entities in both directions.
Input
This tool runs entirely in your browser. The data you paste or load is never uploaded.
Result
Enter your input, then run the tool.
About this tool
Encodes characters that are unsafe in HTML (&, <, >, quotes) or decodes named and numeric entities back to text. Numeric output is useful when you want to avoid relying on a named entity table.
How to use it
- Paste the text or markup fragment.
- Choose Encode or Decode, and named or numeric output.
- Copy the converted value.
Frequently asked questions
When should I use numeric entities?
When a named entity may be missing from a limited character table, or when you want every character expressed uniformly.
Does decoding run script content?
No. The output is only placed in a textarea as text; nothing is executed.
Keep going
Related tools
URL Encoder
Percent-encode text for URLs and query strings.
Text to ASCII Converter
Convert text to ASCII codes and back, in any base.
Unicode Inspector
Inspect code points, UTF-8 bytes and HTML entities per character.
HTML Formatter
Indent nested HTML and make long templates readable.
JSON Formatter
Pretty-print compact or broken JSON with a readable indentation.
JSON Validator
Check JSON syntax and see exactly where it breaks.