Skip to content
Local

Developer

HTML Entity Encoder

Escape text to HTML entities, named or numeric, and decode entities back to plain characters.

Runs in your browser. Nothing leaves this device.

Open HTML Entity Encoder

Free, no account, no watermark and no daily limit.

Open HTML Entity Encoder

How to use HTML Entity Encoder

  1. 1Pick Encode or Decode.
  2. 2Paste your text or HTML.
  3. 3Copy the result. When encoding you can choose named or numeric entities and how much to escape.

Questions

Which characters must be escaped?

Inside HTML, the characters & < > " and ' are the ones that can break markup. Escaping only those keeps the text readable and safe to paste into a page.

Named or numeric?

Both work in every browser. Named ones like &copy; are easier to read. Numeric ones like &#169; cover every character, including emoji.

Why did &#150; turn into a dash?

Browsers read the numbers 128 to 159 as the old Windows-1252 characters, so &#150; is an en dash. The decoder does the same.

Is my text sent anywhere?

No. Encoding and decoding happen in your browser.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc