πŸ”‘ HTML Entity Encoder and Decoder

Paste text or HTML entities and switch between encoded and decoded forms with one click.

Encoding Free Β· no sign-up Added 2026-10-20
Input
Result

Private by design. This tool runs entirely in your browser β€” nothing you enter or add is uploaded to any server.

How it works

  1. Paste the text you want to encode or the entities you want to decode.
  2. Choose Encode or Decode mode.
  3. Click Convert to get the transformed output.

Examples

  • < becomes &lt; and & becomes &amp; when encoding.
  • Decoding &lt;div&gt; returns the actual <div> characters.
  • Useful for safely embedding user content or reading escaped HTML.

Frequently asked questions

Which entities are handled?

Common named entities plus numeric entities are converted. The browser's built-in encoding is used for reliability.

Is this safe for XSS prevention?

Encoding helps, but always use proper contextual escaping in your templates. This tool is for convenience.

Does anything leave my browser?

No. Conversion is 100% client-side.