Developer tools

HTML Entity Encoder & Decoder

Encode special HTML characters or decode entities.

Let’s get to work

Fill in the details below to get started.

BROWSER TOOL

About HTML Entity Encoder & Decoder

Encode characters such as ampersands and angle brackets for display as text, or decode HTML entities. Encoding is not a substitute for context-aware security controls.

How to use it

  1. Enter the text or entities.
  2. Choose encode or decode.
  3. Convert and copy the output.

Frequently asked questions

Does this sanitize HTML?

No. Entity conversion alone is not a complete HTML sanitizer or cross-site scripting defense.

Which characters are encoded?

The encoder handles ampersands, angle brackets, double quotes and apostrophes.