HTML Entity Encoder & Decoder

Escape special characters like &, <, and > into HTML entities, or decode entities back to plain text.

Copied

Last updated

Encoded or decoded text will appear here.
Copied

Why entity-encode text

Characters like <, >, &, and quotes have special meaning in HTML, so inserting raw user text into a page can break markup or open the door to injection. Encoding replaces them with named entities — &amp;, &lt;, &gt;, &quot;, &#39; — so they render as literal text instead of being parsed as markup.

Conversion happens locally in your browser tab; nothing is uploaded.