Encoders & Decoders tool
✦ Browser-firstHTML Entity Encoder / Decoder
Escape and unescape HTML, such as < to <.
About this tool
Escape special characters so HTML displays as text, or decode entities (named and numeric) back to characters. Optionally encode every non-ASCII character.
How to use the HTML Entity Encoder / Decoder
- Paste text or HTML.
- Choose Encode or Decode.
- Copy the escaped or unescaped output.
Common uses
- Escaping user content
- Showing code in a page
- Cleaning scraped text
HTML Entity Encoder / Decoder questions
Which characters are escaped?
At minimum &, <, >, double and single quotes, and optionally all non-ASCII characters.
Does escaping prevent XSS?
It helps in HTML text contexts but is not enough for every context, such as scripts or attributes.
Is my text uploaded?
No.