HTML Entity Encoder / Decoder

Escape and unescape HTML entities in both directions.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Encodes characters that are unsafe in HTML (&, <, >, quotes) or decodes named and numeric entities back to text. Numeric output is useful when you want to avoid relying on a named entity table.

How to use it

  1. Paste the text or markup fragment.
  2. Choose Encode or Decode, and named or numeric output.
  3. Copy the converted value.

Frequently asked questions

When should I use numeric entities?
When a named entity may be missing from a limited character table, or when you want every character expressed uniformly.
Does decoding run script content?
No. The output is only placed in a textarea as text; nothing is executed.

Keep going

More in this category