HTML entity encoder / decoder

Safely escape & < > " ' and every non-ASCII character into HTML entities for error-free embedding, or decode named and numeric entities back to plain text.

How to HTML entity encoder / decoder

  1. Step 1. Paste text containing special characters or entities into the Input Buffer.
  2. Step 2. Choose Encode Named, Encode Non-ASCII, or Decode Entities.
  3. Step 3. Copy the escaped or unescaped result from the Output Buffer.

Frequently asked questions

Why encode text into HTML entities?

Escaping &, <, >, " and ' prevents XSS breakage and renders text literally when embedding it in HTML or XML.

Does decoding handle numeric entities?

Yes. Both decimal (&#169;) and hex (&#xA9;) numeric entities are decoded via code points, alongside named entities like &amp; and &copy;.

Is my text uploaded anywhere?

No. Encoding and decoding are fully client-side.