HTML Entity Encode / Decode
Encoders & Ciphers
100% in-browser
Escape text to HTML entities, or decode entities back to characters.
How to use the HTML Entity Encode / Decode
- 1 Paste text or HTML.
- 2 Choose Encode to escape special characters, or Decode to reverse it.
- 3 Copy the result.
About the HTML Entity Encode / Decode
Characters like the angle brackets, ampersand and quotes have special meaning in HTML. Encoding them as entities lets you display them as text instead of markup, preventing broken layouts and injection.
This tool escapes and unescapes HTML entities entirely in your browser.
Frequently asked questions
Which characters get encoded?
The reserved characters ampersand, less-than, greater-than and quotes are converted to their entities.
Does decode handle numeric entities?
Yes, both named and numeric entities are decoded.