HTML Entities Encode / Decode
Convert text to HTML entities (named, decimal or hex) and decode entities back to plain text, with a searchable entity table.
Safe for putting text inside HTML: only the five characters that could break markup are escaped.
Plain text
Encoded result
Common HTML entities
Click any row to copy its entity name.
| Character | Name | Decimal | Hex | Description |
|---|
No entity matches that search.
How to use the HTML entity encoder
- Choose Encode to turn characters into entities, or Decode to turn entities back into readable text.
- When encoding, pick the format — named (
©), decimal (©) or hex (©) — and whether to escape only& < > " 'or every non-ASCII character. - Paste your text on the left and copy the result on the right; use the table below to look up a single entity.
FAQ
Which characters must I escape in HTML?
Inside page text you must escape &, < and >. Inside an attribute value you must also escape the quote character you used — " or '. The default “Only & < > " '” setting covers all five.
Do emoji and Chinese characters survive encoding?
Yes. Astral characters such as 🎉 are encoded as one code point (🎉), not as two broken halves, so decoding gives you the original character back.
Is decoding here safe?
Yes. The decoder works on the text itself with its own lookup table — it never writes your input into the page as HTML, so a pasted <script> can never run.