Developer tool

Encode or Decode HTML Entities

Escape HTML-sensitive characters or decode common named and numeric entities in a text snippet.

Runs locally in your browser

Your text is not uploaded.

Simple steps

How it works

  1. 01

    Paste text or encoded HTML entities.

  2. 02

    Choose Encode or Decode.

  3. 03

    Copy the escaped or decoded result.

Good to know

Frequently asked questions

Which characters are escaped?

Encoding covers ampersand, angle brackets, quotation marks, and apostrophes.

Are numeric entities decoded?

Yes. Decimal and hexadecimal numeric character references are supported.

Does encoding make HTML safe in every context?

No. Different contexts require different escaping; this tool is for ordinary HTML text content.

Is text sent to a server?

No. Entity conversion runs in your browser.

Can it sanitize HTML?

No. It encodes or decodes entities but is not an HTML sanitizer.