HTML Entity Encoder / Decoder
Convert special characters to HTML entities (like &) for safe display, or decode entities back to plain text.
Input
Output
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 &) and numeric entities (like ' or ') are decoded correctly, using the browser's own HTML parser.