Skip to content

Generators & Converters

HTML Entity Encoder

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

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

Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.

Result will show here after you run the tool.

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 Generators & Converters

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.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.