HTML Entities Encoder & Decoder

Escape HTML special characters so they're safe to embed in markup, or reverse the process to read raw HTML. Optional numeric mode encodes every non-ASCII character.

Features

  • Encode <, >, &, ", ' to named entities
  • Optional numeric entities (&#NN;) for non-ASCII
  • Decode named, decimal, and hex entities back to text
  • Live conversion
  • 100% client-side

How to html entities encoder & decoder

  1. Paste your input — Either plain text (to encode) or HTML-escaped text (to decode).
  2. Pick mode — Encode or Decode.
  3. Copy — Output ready in the right-side box.

Frequently asked questions

Is it safe to use the HTML Entities online?
Yes — and ours is safer than most. Many free online tools quietly upload your files to their servers to do the work. We don't. Everything happens inside your browser on your own device, so your files never reach the internet. There's no upload step, no server copy, and no way for us (or anyone else) to see what you're working on.
Are my files uploaded to a server?
No. There's no server-side processing here. The whole tool is a tiny app that runs in your browser — we don't even have a server that could receive your files. You can confirm this by opening your browser's network tab while you use the tool: nothing leaves your device.
Do I need to sign up or pay?
No. There's no account, no email collection, no credit card. The tool is free to use as much as you want, on as many files as you want. We're supported by a few unobtrusive ads on the page — not by your data.
Why encode non-ASCII characters?
Numeric entity mode (&#NN;) is useful for emails or older systems that mangle UTF-8. For modern web pages with charset=utf-8 you don't need it.
Are all named entities supported?
On decode, the common ones (&amp;, &lt;, &gt;, &quot;, &apos;, &nbsp;, &copy;, etc.) plus all numeric entities. Less common named entities are passed through unchanged.