How to encode and decode HTML entities
Convert special characters to safe HTML entities and back — with named entities, numeric codes and a full reference table.
1. Paste your text
Drop in raw text with special characters, or HTML with entities you want to read.
2. Encode or decode
Encode turns < > & " into < > & ". Decode turns entities back into characters.
3. Copy the result
One click to copy. Use named entities (©) or numeric (©) — both decode identically.
Encoding matters whenever user text is placed inside HTML: unescaped < and & characters break markup and enable XSS injection. Encode anything a user typed before rendering it. Also handy for showing code examples on a page. For URLs use percent-encoding instead — see the Text Tools URL encoder, and for Base64 use the Base64 tool.