Free HTML Entity Encoder / Decoder
Encode text into HTML entities, or decode HTML entities back to plain text, instantly.
Input
Output
How to encode or decode HTML entities
- Choose Encode or Decode.
- Paste your text or HTML.
- Copy the result.
encode vs decode
Encoding converts characters like <, >, &, quotes, and non-ASCII characters into their HTML entity form (such as < or é), 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.