HTML Entity Encoder / Decoder

Last updated: June 11, 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.

Read the full guide: HTML Entity Encoder / Decoder Online (Free)

  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.

Stop user input from breaking your HTML

Before dropping a comment, username or search term into a page, paste it here and encode it. Reserved characters like <, > and & become &lt;, &gt; and &amp;, so a stray angle bracket or script tag renders as plain text instead of breaking your layout or injecting markup into the DOM.

Decode entity-laden scraped or exported text

Text pulled from an RSS feed, a CMS export or a scraped page often arrives full of &amp;amp;, &#39; and &quot;. Paste it into Decode to turn those named and numeric entities back into readable characters, so titles, apostrophes and ampersands look right before you reuse the content elsewhere.

Show literal code samples on a web page

To display tags like <div> or an & in a tutorial or docs page without the browser interpreting them, the characters must be escaped first. Encode your snippet here so each < > & and quote becomes its entity, then paste the result into your HTML and the code shows on screen exactly as typed.

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.