HTML Entity Encoder / Decoder

Encode HTML-sensitive characters or decode named and numeric entities into literal text.

Workspace

How to use this tool

Paste text and choose Encode or Decode. The result is displayed as text, never executed as HTML.

What to know

Encoding covers ampersands, angle brackets and both quote types. This is useful for displaying source snippets safely.

Frequently asked questions

How do I use HTML Entity Encoder / Decoder?

Paste text and choose Encode or Decode. The result is displayed as text, never executed as HTML.

What should I check before using the result?

Encoding covers ampersands, angle brackets and both quote types. This is useful for displaying source snippets safely.

Is an account required?

No. This tool is free and the calculation takes place in your browser.