Developer Tools toolsUpdated July 2026

Free HTML Entity Encoder / Decoder

Encode text into HTML entities, or decode HTML entities back to plain text, instantly.

Free online tool No signup Copy-ready result Browser-first privacy
AdvertisementTop tool sponsor space
AdvertisementBelow tool sponsor space

How to encode or decode HTML entities

  1. Choose Encode or Decode.
  2. Paste your text or HTML.
  3. Copy the result.

encode vs decode

Encoding converts characters like <, >, &, quotes, and non-ASCII characters into their HTML entity form (such as &lt; or &#233;), which is useful when embedding untrusted or special text safely inside HTML. Decoding reverses this, turning entities back into their original characters.

Common use cases

  • Escape special characters before embedding text in HTML
  • Decode HTML entities from scraped or copied web content
  • Convert accented or symbol characters into safe HTML entities

Frequently asked questions

Is this tool free?

Yes. It is completely free, with no signup and no limits.

Is my text uploaded anywhere?

No. Encoding and decoding happen entirely in your browser.

Which characters get encoded?

Reserved HTML characters (<, >, &, ", ') and any non-ASCII character are converted to entities; plain ASCII letters, numbers, and punctuation are left as-is.

Does decoding execute any scripts in the input?

No. Decoding uses an inert, non-executing HTML parser purely to resolve entities — no scripts or styles from the input are ever run.

Does this support named entities like &?

Yes, for both encoding common characters and decoding standard named and numeric HTML entities.