HTML Entity Encoder & Decoder
Escape text to HTML entities or decode them back. Runs entirely in your browser.
How it works
Frequently Asked Questions
To display characters like <, > and & literally instead of letting the browser treat them as markup — and to prevent injection when showing user text.
By default &, <, >, " and ’. Enable “all non-ASCII” to also encode accented and non-Latin characters.
No — it is encoded and decoded in your browser.
Encode and decode HTML entities online for free. Convert characters such as &, <, >, " and ’ into their entity equivalents so they display literally and can’t break your markup, or decode entities back to plain text. Optionally escape every non-ASCII character as a numeric entity for maximum compatibility. It is handy for safely showing code, user content and special symbols, and it all runs in your browser.