Encoding

HTML Entity Encoder / Decoder

Encode characters into HTML entities or decode HTML entities back to readable text in your browser.

How to use HTML Entity Encoder / Decoder

Best for

  • Escaping ampersands, angle brackets, quotes, and apostrophes for HTML text.
  • Decoding common named and numeric HTML entities.
  • Checking readable text before adding it to an HTML snippet.

Steps

  1. Paste text or HTML entities into the input box.
  2. Choose Encode or Decode.
  3. Review the output and copy it.

Notes

  • HTML entity encoding is not a complete sanitizer or security review.
  • Use URL encoding, not HTML entities, for URL query values.

FAQ

What characters does HTML entity encoding change?

It escapes common HTML-sensitive characters such as ampersands, less-than and greater-than signs, quotes, and apostrophes.

Can HTML entities prevent XSS?

Entity encoding can help display characters as text, but it is not a complete XSS prevention strategy.