HTML Text Encoder & Decoder

Turn special characters into HTML entities so they render literally — or decode entities back to text.

Input
Auto encode
Result
The encoded or decoded text will appear here.

Free · Private · Runs in your browser

How to use

Encode

  1. Type or paste your text, e.g. Hello & welcome!
  2. Click Encode.
  3. Copy the entity-safe result.

Decode

  1. Paste text containing entities like & or !.
  2. Click Decode to get the readable text back.

Good to know

Auto encode re-encodes as you type, so you can watch the entities build up.

Questions

Which characters get encoded?
Reserved and non-ASCII characters — <, >, &, quotes, accented letters and symbols — are turned into their named or numeric HTML entities.
Will it break my markup?
Encoding is safe to paste straight into an HTML attribute or text node. Decoding reverses it exactly.
Is there a length limit?
No. Paste as much text as you need.

Advertisement