dev utility

HTML Entity Encoder / Decoder

Escape text for HTML or decode named and numeric HTML entities locally.

Encode or decode entities

Escape text for HTML or decode named and numeric HTML entities locally.

How it works

Convert the five critical HTML characters and non-ASCII text into entities, or decode entities back to readable text. It does not execute HTML or insert the result into the page.

Limits

Questions

Which characters are escaped?

The encoder handles the characters that change HTML structure, including ampersand, angle brackets, quotes and apostrophes. The output is shown before you copy it.

Does decoding execute any HTML?

No. Decoding only converts entity text to characters; it never inserts markup into the page or runs scripts.

Privacy

Approved improvement measurement records coarse event counts only: page ready, task started, completed, export requested and a generic failure class. It never records filenames, file contents, text, output, full URLs or a visitor ID. You can turn measurement off for this hostname below.