HTML Entities

Encode HTML-sensitive characters or decode named and numeric references.

Tool options

Enter text to get started.

How to use HTML Entities

  1. Paste or type your input. You can also load the example below.
  2. Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
  3. Review the result, then copy it or download it to your device.

How this tool works

Encode the five HTML-sensitive characters, optionally including non-ASCII text. Named encoding falls back to a numeric reference. Decoding follows the HTML5 entity set, including legacy references without semicolons, one layer at a time.

Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.

Frequently asked questions

Why is & still an entity after decoding?

One pass removes one encoding layer. Decode the result again to remove another layer.

Does this sanitize a whole HTML document?

No. It escapes text or decodes references. It does not validate markup or make scripts safe to execute.