SafeToolkits

HTML Entity Encode/Decode

Escape and unescape HTML entities.

Runs in your browser: what you paste is never uploaded

How to use HTML Entity Encode/Decode

  1. 1Paste or type your inputUse the box above, or click Sample to try it with an example.
  2. 2Choose your optionsChoose Encode or Decode, and whether to escape only the special characters or every non-ASCII character too.
  3. 3Copy the resultCopy it with one click. Nothing is sent anywhere.

About HTML Entity Encode/Decode

Escape characters like < > & and quotes as HTML entities, or decode named and numeric entities back to text.

Frequently asked questions

Which characters must be escaped in HTML?

< and & in text, plus quotes inside attribute values. Escaping them prevents broken markup and injection.

Are named entities like &nbsp; and &eacute; supported?

Yes, as well as numeric ones like &#233; and &#xE9;.

Is what I paste sent anywhere?

No. The tool runs entirely in your browser and never sends what you type or paste to a server.

Is it free?

Yes. It's free, with no sign-up and no limits.

Related tools