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 & or ₹ 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
- Choose Encode or Decode.
- Paste your text or HTML snippet.
- For encoding, choose whether to also convert non-ASCII characters and whether to prefer named entities.
- 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 & and < in text, and " or ' inside attribute values. Escaping > is optional but common.
Is there a named entity for the rupee sign?
No. Use the numeric form &#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 &copy; are easier to read.
What are HTML entities?
They are codes that represent characters in HTML, such as < for < and & 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 " and ' are turned back into normal characters.
How do I show HTML code as text on a web page?
Encode it first so become < and >, 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