Skip to content

Free HTML Entities Encoder / Decoder

Encode or decode HTML special characters. Completely free, with no sign-up and no upload.

  • 100% free
  • No sign-up
  • No watermark
  • Works in your browser

Also called: HTML entity encoder, HTML entity decoder, HTML escape.

About HTML Entities Encoder / Decoder

Encode special characters as HTML entities (such as < and &) or decode entities back into readable characters. Encoding protects markup when you show code on a web page, and decoding cleans up text that arrived full of entities. It never decodes twice, so < correctly becomes <.

How to use HTML Entities Encoder / Decoder

  1. Choose Encode or Decode.
  2. Paste your text or markup.
  3. Read the converted output.
  4. Copy it.

Tips and good to know

  • Always escape &, <, > and quotes when showing user-provided text inside HTML.
  • Decoding supports about 110 common named entities plus numeric ones; unknown names are left unchanged.
  • Encoding is not a substitute for a proper sanitising library on a server.

When characters must be encoded

In HTML, a few characters have special meaning: < and > start and end tags, & starts an entity, and quotes end attribute values. To show them as text they must be written as entities such as &lt;, &gt;, &amp; and &quot;. Encoding user-supplied text before inserting it into a page is a key defence against cross-site scripting, where attackers smuggle in their own script tags. Named entities like &copy; and numeric ones like &#169; also let you type symbols that are hard to enter on a keyboard.

When entities are needed

Five characters have special meaning in HTML: < and > start and end tags, & starts an entity, and quotes delimit attribute values. To show them as text — for example, code samples on a web page — they must be written as &lt;, &gt;, &amp;, &quot; and &#39;. Escaping user input this way is also a basic defence against cross-site scripting (XSS).

Pages saved as UTF-8 can include accented letters and symbols directly, so named entities such as &eacute; are rarely necessary today.

Frequently asked questions

Why are some entities not decoded?

The tool includes the common named entities, not the full list of more than 2,000 from the HTML specification. Unknown names stay as they are.

Is HTML Entities Encoder / Decoder free?

Yes. HTML Entities Encoder / Decoder is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.

Are my files uploaded?

No. This tool runs in your browser, so your input stays on your device.

Maintained by Malik Shaheer · Last reviewed · How we test tools · Report a problem

Related tools

Remove Duplicate Lines

Delete repeated lines from a list.

Text Tools

Remove Line Breaks

Join broken lines and clear empty lines.

Text Tools

Reverse Text

Reverse characters, words or lines.

Text Tools

Sort Lines

Sort lines A–Z, Z–A, by number, or shuffle them.

Text Tools

Text Cleaner

Remove extra spaces, stray symbols and odd formatting.

Text Tools

Text Encryption and Decryption

Encrypt a message with a password and decrypt it later.

Text Tools