About the HTML Entity Encoder & Decoder
Some characters have special meaning in HTML. A < or & in your text can break markup if it is not encoded, and code samples need to be escaped to display as text rather than run. This HTML entity encoder converts characters to named entities (such as & and <) or numeric entities (such as ₹ for ₹), and decodes entities back into plain text.
Use it when adding code examples to a blog post, pasting text with quotes into an HTML attribute like a meta description, or cleaning up titles and descriptions where entities appear double-encoded in a CMS or feed. With UTF-8 pages, most symbols can be typed directly, so encode only what is needed. The conversion happens in your browser.
How to use it
- Paste the text or HTML you want to convert.
- Choose encode or decode, and named or numeric entities.
- Copy the converted output.
- Paste it into your HTML, CMS or feed.
Frequently asked questions
When do I need to encode HTML entities?
Always encode & and < in text content, and quotes inside attribute values that use the same quote character. Encoding is also needed when you want HTML or code to display as text instead of being interpreted by the browser.
Named or numeric entities: which is better?
Both display the same. Named entities like © are easier to read, but not every character has one. Numeric entities work for any Unicode character. On a UTF-8 page, you can usually type symbols such as ₹ or © directly.
Why does my title show &amp; in search results?
That is double encoding: an already encoded & was encoded again by a plugin, CMS or feed. Decode the stored value once so the HTML contains a single &, which browsers and search engines display as &. Then check the page source to confirm the fix.