CloudAlls Tools
Encoders & Decoders tool

HTML Entity Encoder / Decoder

Escape and unescape HTML, such as < to &lt;.

✦ Browser-first
Why it is useful

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.

Quick guide

How to use the HTML Entity Encoder / Decoder

  1. Paste text or HTML.
  2. Choose Encode or Decode.
  3. Copy the escaped or unescaped output.

Common uses

  • Escaping user content
  • Showing code in a page
  • Cleaning scraped text
FAQ

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.