HTML Entity Encoder / Decoder

Convert special characters to HTML entities (like &) for safe display, or decode entities back to plain text.

Copied
Input0 B
Output0 B

Encoding text to HTML entities prevents characters like <, >, and & from being interpreted as markup when inserted into an HTML page.

Frequently asked questions

How do I encode text to HTML entities online?

Paste your text into the input box and click Encode. Characters with special meaning in HTML (&, <, >, ", ') are replaced with their named entities.

Does decoding support numeric entities too?

Yes — both named entities (like &amp;) and numeric entities (like &#39; or &#x27;) are decoded correctly, using the browser's own HTML parser.

Related tools

← Back to all tools