HTML Entity Encode & Decode

Convert special characters to HTML entities and back — handles named and numeric entities,100% in your browser.

🔒 100% private — encoded/decoded in your browser, never uploaded.

What are HTML entities?

Certain characters have special meaning in HTML — the ampersand, the less-than and greater-than signs, and quotes. To show them as literal text (instead of letting the browser treat them as markup), you replace them withentities like &, < and >. This tool does that conversion both ways.

How to use it

  1. Encode: paste text or code and get a version safe to drop into HTML.
  2. Decode: paste entity-escaped text to turn it back into normal characters.
  3. Copy the result with one click.

Is it private?

Yes — everything runs in your browser, so the code or content you paste is never uploaded.

Frequently asked questions

Is my text uploaded?

No — it is encoded and decoded locally in your browser.

Does it handle numeric entities?

Yes — both named and numeric (decimal and hexadecimal) entities are supported.

Related: URL encode/decode · Base64