HTML Entity Encoder & Decoder

Escape special characters into HTML entities or turn entities back into text.

About this tool

Characters like < and & have special meaning in HTML. Encode them to show code safely on a page, or decode entities to read them.

How to use HTML Entity Encoder & Decoder

  1. Paste your text.
  2. Choose encode or decode.
  3. Copy the result.

Frequently asked questions

Why encode HTML?

To display characters like < literally and to avoid breaking markup or injecting scripts.

What about accented letters?

Tick the option to turn non-ASCII characters into numeric entities.