HTML Entity Encoder / Decoder

Escape and unescape HTML special characters. Free, no sign-up, your text stays on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to encode HTML entities

  1. Paste the text.
  2. Press Encode to turn < > & and quotes into entities, or Decode to go back.
  3. Tick “Encode all non-ASCII characters” if needed.
  4. Copy the result.

Show code safely

To display “<div>” on a web page instead of creating a div, the special characters must be written as entities: &lt; &gt; &amp;. Encoding is also used in XML, email templates and to avoid broken attributes.

Decoding turns text like “Tom &amp; Jerry” back into normal characters.

Questions and answers

Which characters must be encoded?

< > & and quotes inside attributes.

Why encode accents?

Old systems that don’t support UTF-8 may need it.

Is it free?

Yes.

Is my text uploaded?

No.