HTML entity encoder & decoder

Safely embed special characters and HTML tags in HTML – or make & soup readable again.

100% private: everything is processed locally in your browser. Your data never leaves your device.

How to use

  1. Paste text or HTML into the left box.
  2. Click “Encode” or “Decode”.
  3. 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 &lt;, &gt;, &amp; 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 &euro; are more readable; numeric ones like &#8364; 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.