Tools
Runs locally

HTML Entity Encode / Decode

Escape and unescape HTML characters.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Encodes &, <, >, quotes and decodes named and numeric entities without injecting HTML into the page.

About this tool

Show code samples on a web page, put user text into HTML safely, or read text full of &quot; and &#x2014;. Encoding and decoding happen without injecting anything into the page.

How to use it

  1. 01

    Paste the text or the HTML with entities.

  2. 02

    Choose encode or decode.

  3. 03

    Copy the result.

FAQ

Frequently asked questions

Which characters are encoded?

The ones that matter for HTML: &, <, >, double and single quotes.

Are numeric entities decoded?

Yes. Named entities such as &copy; and numeric ones such as &#169; or &#xA9; are decoded.