HTML Entity Encoder and Decoder
Encodes special characters as HTML entities, or decodes entities back into ordinary characters. It is useful for showing an HTML tag as text on a web page, or for making sense of text full of codes such as & and <. The result is always shown as plain text.
How to use the HTML Entity Encoder and Decoder
- Choose Encode or Decode, then type or paste your text.
- When encoding, choose which characters to convert and the entity style.
Rules applied
- Decoding understands the HTML 4 named entities,
'and decimal and hexadecimal references. - Encoding always converts
& < > " '; the apostrophe uses'because older HTML has no name for it.
Safety and limitations
- The result is shown as plain text and never rendered as HTML.
- Newer HTML5-only names (such as

) are left unchanged when decoding.
Worked examples
Input
<a href="x">Tom & Jerry's</a>
Result
<a href="x">Tom & Jerry's</a>
Input
Café & crème 😀 © 2026
Result
Café & crème 😀 © 2026
Practical uses
-
Show code examples on a web page
A blogger wants to display an HTML tag as text in a tutorial. They choose Encode and paste the tag. The special characters are converted, so the browser shows the tag instead of treating it as markup.
-
Read text copied from page source
An editor copies text from page source that is full of codes such as é and &. They choose Decode and paste it in. The codes turn back into readable letters and symbols, so the text can be read and edited normally.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.