HTML Entity Encoder & Decoder

Encode reserved HTML characters or decode named and numeric entities.

HTML Entities workspace

About HTML Entities

HTML entities represent characters that would otherwise be interpreted as markup. Encode the five characters that need escaping in HTML text, or decode browser-supported named and numeric entities back to readable text.

How to use

  1. Choose encode or decode.
  2. Paste HTML text or entities.
  3. Copy the converted value.

FAQ

Does encoding make untrusted HTML safe everywhere?

It safely escapes text for normal HTML content, but attributes, URLs, CSS, and JavaScript have different rules. Use a context-aware sanitizer in application code.