HTML entity encoder & decoder
Encode special characters as HTML entities or turn entities back into text, with a syntax preview.
How to use
- Paste text containing special characters or HTML entities.
- Under Operation, choose Encode entities to create entities or Decode entities to recover the characters; click Convert entities.
- Review the syntax-highlighted preview and copy the result into the appropriate context.
How it works
Accepts up to 100,000 characters; decoding requires semicolon-terminated entities. Entity encoding does not replace HTML sanitization, and output is displayed as text without executing code.
An example
“<strong>Hello</strong>” can be represented as “<strong>Hello</strong>” to show the tags as text.
Common questions
Why use < instead of < in HTML text?
The entity represents the less-than sign as content, preventing it from being interpreted as the start of a tag in that text context.
Does decoding entities render a page?
No. The tool displays the resulting text. Tags and scripts are treated as text in the interface.