About HTML Entity Encoder
The HTML Entity Encoder converts special characters — like <, >, & and quotes — into their HTML entity equivalents, and decodes entities back to plain text. Encoding is essential whenever you need to display code or user text inside an HTML page without the browser interpreting it as markup.
The decoder understands named entities (&, ©, — and dozens more), decimal (é) and hexadecimal (é) forms. An optional mode also encodes every non-ASCII character numerically, useful for systems that mangle UTF-8.
How to Use the HTML Entity Encoder
- Choose Encode or Decode mode.
- Paste your text or entity-encoded HTML.
- Copy the converted result.
Features
- Encodes the five HTML-critical characters (& < > " ')
- Optional numeric encoding of all non-ASCII characters
- Decodes named, decimal and hex entities
- Instant, client-side conversion
Frequently Asked Questions
When do I need HTML entities?
Whenever text could be interpreted as markup: showing code snippets on a page, inserting user content into HTML, or writing characters like < and & in documentation. Encoding prevents broken layouts and XSS injection.
What's the difference between é and é?
Both represent é. é uses the decimal code point; é uses hexadecimal. Browsers accept either form.
Is the HTML Entity Encoder free?
Yes, the HTML Entity Encoder is completely free with no usage limits. No signup, no account and no installation required.
Is my data safe?
Yes. All processing happens locally in your browser using JavaScript — nothing you type is uploaded or stored on our servers.
Related Tools
URL Encode/Decode
Encode or decode URLs and query strings online. Free URL encoder/decoder for percent-encoding special characters.
Base64 Encode/Decode
Encode text to Base64 or decode Base64 to text instantly. Free online Base64 converter — no upload, everything stays in your browser.
HTML to Markdown
Convert HTML to clean Markdown — headings, lists, links, images and code blocks. Free client-side HTML to Markdown converter.