HTML Entity Encoder/Decoder
Encode special characters to HTML entities, or decode HTML entities back to plain text — instantly, in your browser.
Encode the characters that break HTML into entities, or decode numeric and basic entities back to plain text. It runs in your browser.
How to use it
- Choose encode or decode.
- Paste your text.
- Copy the result.
What it converts
Encoding replaces five characters: & becomes &, < becomes <, > becomes >, a double quote becomes " and a single quote becomes '. The input <a href="x">Tom & Jerry's</a> becomes <a href="x">Tom & Jerry's</a>.
Decoding reverses those five and also converts numeric entities, so © becomes the copyright sign.
Good to know
Other named entities, such as © and , are left as they are, because the tool does not carry a table of names. Decoding goes one level only: &amp; becomes &. Pages served as UTF-8 do not need entities for accents or symbols. Encoding is a basic safeguard, not complete security; use your template system’s escaping on real sites.
Read the guide and the glossary entry.
FAQs
Why did &amp; appear in my text?
The text was encoded twice. Decode it once, then encode only the plain version.