Skip to content

Code tool

HTML Entity Encoder

Turn <, >, and quotes into entities, or turn entities back into characters.

Processed in your browser. The text is not sent to our servers.

How to encode HTML entities

  1. Paste text or markup.
  2. Click Encode, or Decode if the text is already escaped.
  3. Copy the result.

Encoding replaces &, <, >, quotes, and apostrophes. Decoding reads named entities such as &amp; and numeric codes such as &#39;.

Back to Code tools

Frequently asked questions

Will this run the HTML?

No. The text is rewritten as characters. It is not inserted into the page as markup.

Is the text uploaded?

No. Encoding and decoding run in your browser.