HTML Entity Encoder / Decoder

Last updated: June 1, 2026

Encode and decode HTML entities.

Loading tool…

HTML Entity Encoder / Decoder is a free online tool to encode and decode HTML entities. It runs entirely in your browser, so your files never leave your device — nothing is uploaded. There's no sign-up, no watermark, and it works on any modern browser on desktop or mobile.

How to use HTML Entity Encoder / Decoder

The HTML Entity Encoder / Decoder converts special characters to HTML entities and back, so your markup renders safely and exactly as intended. It encodes &, <, >, quotes and more. Free and runs entirely in your browser.

  1. 1Choose Encode or Decode.
  2. 2Paste your HTML or text.
  3. 3Copy the result.

Safe markup

Escape characters that would otherwise break or inject into HTML.

Both directions

Encode entities or decode them back to characters.

Free & private

Runs on your device with no sign-up.

HTML Entity Encoder / Decoder — frequently asked questions

What are HTML entities?

Codes like &amp; &lt; and &gt; that represent reserved characters so browsers display them as text instead of interpreting them as markup.

When should I encode entities?

When you want to show literal < > & or quotes in a page, or to safely include user text in HTML.

Does it handle named and numeric entities?

Encoding produces standard entities; decoding resolves both named (&amp;) and numeric (&#39;) entities.

Is it free?

Yes, completely free.

Share this tool

Send it to someone who needs it or save the link for later.