🔤 HTML Entity Encoder & Decoder

Escape text for safe HTML display, decode named or numeric entities, and inspect the characters in a string. Choose readable entities for the five HTML-sensitive characters or numeric entities for every non-ASCII character.

Character inspector
When should text be encoded?

When text will be inserted into HTML as text, encode at least &, <, >, quotes and apostrophes. That preserves characters rather than letting the browser treat them as markup. This tool transforms text only; it does not sanitise HTML that you plan to execute.