HTML Entity Encoder / Decoder

Escape or unescape HTML entities — &, <, numeric and named — in one click. Runs locally, nothing uploaded.

Escape or unescape HTML entities — &, <, quotes, and numeric or named entities — in one click. Paste text to make it safe for embedding in HTML, or paste encoded snippets to read them back. Everything runs locally in your browser.

How to use the HTML Entity Encoder / Decoder

  1. Paste the text you want to escape (or encoded text to decode).
  2. Choose Encode or Decode — optionally encode all non-ASCII characters.
  3. Copy the result into your HTML, email template or CMS.

Frequently asked questions

How do I escape HTML in text?

Paste the text and click Encode — &, <, > and quotes become &amp;amp;, &amp;lt;, &amp;gt; and &amp;quot;, so it renders safely inside HTML.

How do I decode HTML entities?

Paste the encoded text and click Decode. Named entities (like &amp;copy;) and numeric ones (like &amp;#169;) are converted back to characters.

What does 'Encode all non-ASCII' do?

It converts every character above code point 127 to a numeric entity, so your text survives in encodings or contexts that only support ASCII.

Is my text uploaded anywhere?

No — encoding and decoding happen entirely in your browser.