How to use
- Paste text or HTML into the left box.
- Click “Encode” or “Decode”.
- Choose a mode: only HTML special characters, named entities, or all non-ASCII characters as numeric references.
When do you need HTML entities?
The characters < > & " ' have special meaning in HTML. To display them as text – e.g. code samples – write them as <, >, & and so on. This also protects against cross-site scripting.
Accented letters and symbols like € or © work directly in UTF-8 pages, but entities are useful for email templates, XML or systems with other encodings.
Frequently asked questions
Named vs. numeric entities?
Named entities like € are more readable; numeric ones like € work for every Unicode character.
Are scripts executed when decoding?
No. The text is decoded safely and HTML tags aren't interpreted.
Can I encode emojis?
Yes, in numeric mode every character becomes &#…; – emojis included.