Free & private — your files never leave your device.Compress a photo to 100 KB →
Free & 100% Browser-Based

HTML Entity Encoder & Decoder - Free Online

Convert characters such as <, >, &, quotes and entities for safe HTML snippets.

HTML Entity Encoder & Decoder

Escape HTML safely for code

Ready. Your input is processed locally in this browser.

How to use the HTML Entity Encoder & Decoder

  1. Paste text.
  2. Encode or decode.
  3. Copy the result.

Frequently Asked Questions

Is this sanitization?

No. Encoding is different from full HTML sanitization.

Is processing local?

Yes.

Escaping HTML safely

Characters such as <, > and & have special meaning in HTML. Encoding them lets you show code on a page without the browser treating it as markup.

Encoding is not the same as sanitizing. If you accept HTML from users, use a proper sanitizing library on the server rather than relying on this tool.

Related Tools

Browse All Free Tools