HTML Entity Encoder & Decoder

Escape or unescape common HTML entities.

Processed on your device. Your files and text are not uploaded.

Operations apply to the complete input. Review the result before replacing your original.

How to use

Paste your input, choose an operation, then copy or download the result.

When to use HTML Entity Encoder & Decoder

Escape characters before displaying a text snippet as HTML, or decode common named and numeric entities into readable characters.

Practical example

<p>Hello & welcome</p> becomes &lt;p&gt;Hello &amp; welcome&lt;/p&gt;. Decoding &lt;b&gt; returns the literal text <b>.

Does decoding execute HTML?

No. Results remain in a text area. This helper handles common named entities and numeric references; it is not an HTML sanitizer or a complete named-entity catalog.

Related tools