Free HTML Entity Encoder and Decoder
Turn special characters like <, > and & into HTML entities so they display as text, or decode entities back to normal characters. Handy for showing code on a web page or fixing copied text.
How to encode or decode HTML entities
- Choose Encode or Decode.
- Paste your text or HTML.
- When encoding, choose whether to encode quotes and non-English characters.
- Copy the result into your page, email template or code.
What are HTML entities?
Some characters have a special meaning in HTML. A < starts a tag and & starts an entity. If you want them to appear as plain text, for example to show a code snippet in a blog post, you write them as entities instead. The browser then displays the character rather than treating it as code.
Common entities
| Character | Entity |
|---|---|
| < | < |
| > | > |
| & | & |
| " | " |
| ' | ' |
| ₹ | ₹ |
| Non-breaking space | |
When you need it
- Showing HTML, schema or tracking code in a tutorial or blog post.
- Fixing text that shows
&or"after copying from a CMS or export. - Putting text with quotes into an HTML attribute, such as a meta description. Our meta description generator warns you about quotes.
More free tools and guides
Practise tools like this on real projects in our digital marketing course in Faridabad, with weekday, weekend and online batches.
See the courseAll free toolsAsk on WhatsAppFrequently Asked Questions
Is this HTML entity tool free?
Yes. It is free with no sign-up, and everything runs in your browser.
When should I encode HTML?
Encode when you want HTML characters to show as text, such as code examples, or when putting text with quotes and ampersands into HTML attributes.
Why does my text show &?
The text was encoded twice. Paste it here, choose Decode, and run it again if needed until it reads normally.
Does it decode named entities like and ©?
Yes. Decoding uses the browser's own HTML parser, so all standard named and numeric entities are supported.