Skip to content

HTML Entity Encoder & Decoder

Escape text for safe use in HTML (named or numeric entities) and decode &, ₹ and friends back to plain characters.

About HTML Entity Encoder & Decoder

This HTML entity encoder and decoder escapes special characters such as <, >, & and quotes so text displays safely inside a web page, and unescapes entities like &amp; or &#8377; back to plain characters. Choose named or numeric entities, and optionally convert all non-ASCII characters such as ₹ or Hindi letters.

A reference table lists common HTML entities; click any character to copy its entity. It is useful for web developers, bloggers pasting code into posts and anyone cleaning up escaped text from a database or feed. The tool is free, needs no sign-up and runs in your browser.

How to use HTML Entity Encoder & Decoder

  1. Choose Encode or Decode.
  2. Paste your text or HTML snippet.
  3. For encoding, choose whether to also convert non-ASCII characters and whether to prefer named entities.
  4. Copy the result, or click a character in the reference to copy its entity.

Frequently asked questions

Which characters must be escaped in HTML?

Always escape &amp; and &lt; in text, and " or ' inside attribute values. Escaping &gt; is optional but common.

Is there a named entity for the rupee sign?

No. Use the numeric form &amp;#8377; (or just type ₹ in a UTF-8 page).

Named or numeric — which is better?

Both render the same. Numeric entities work for every Unicode character; named ones like &amp;copy; are easier to read.

What are HTML entities?

They are codes that represent characters in HTML, such as &lt; for < and &amp; for &, so browsers show the character instead of treating it as markup.

How do I unescape HTML online?

Choose Decode and paste the text; entities like &quot; and &#39; are turned back into normal characters.

How do I show HTML code as text on a web page?

Encode it first so become &lt; and &gt;, then paste the result into your page.

People also search for

html entity encoder decoder · html entities · html entities online · what are html entities · html entity encode online · html entities online converter · html entities decode online · html entities list · unescape online · unescape online decoder · how to use html entities

Related tools