HTML Entity Encoder / Decoder
Last updated: What’s new
Convert special characters to safe HTML entities, or decode entities back to readable text. Choose named or numeric output for an HTML text context. This is not a sanitizer for every HTML, script, style or URL context.
Runs in your browser. Nothing is uploaded.
Referral reward
Know a business that needs a website or SEO?
Introduce them and earn a referral reward. They work with us directly, and we handle the proposal, delivery and support.
Know a business that needs a website or SEO?
Introduce them and earn a referral reward. They work with us directly, and we handle the proposal, delivery and support.
Projects: 10%, at least $100
Monthly services: 10% for the first six months
A $1,999 website earns you about $200. A $999 a month SEO plan earns about $600 over six months.
Your introduction message
This reference credits the introduction to you:
Email me the referral details
More options Send us this result or get a copy by email
Know a business that needs a website or SEO?
Introduce them and earn a referral reward. They work with us directly.
- Projects: 10%, at least $100
- Monthly services: 10% for the first six months
Your introduction message
This reference credits the introduction to you:
Email me the referral details
How the HTML Entity Tool Works
- Choose a mode, Encode to escape characters, Decode to restore them.
- Pick output type, named entities for readability or numeric for full Unicode coverage.
- Optional full escaping, encode every non-ASCII character for maximum compatibility.
- Copy the result, use the encoded text only in the intended HTML context and retain your framework escaping.
Why Entity Encoding Matters
- Context-aware escaping, correct output encoding is one defense; this tool alone does not sanitize HTML or prevent every XSS case.
- Fixes broken layouts, raw < and & characters can break parsing and display.
- Safe attributes, encoding quotes keeps attribute values from terminating early.
- Portable content, numeric entities render reliably across encodings and email clients.
If unescaped user input is putting your site at risk, our web design services build secure front ends with proper output encoding baked in.
Common HTML Entities Reference
Named entities are readable, while numeric entities work for any character and across legacy encodings. The five core characters at the top of the table must be escaped to keep markup safe and valid.
| Character | Named entity | Numeric |
|---|---|---|
| & | & | & |
| < | < | < |
| > | > | > |
| " | " | " |
| ' | ' | ' |
| non-breaking space | |   |
| © | © | © |
| ® | ® | ® |
| — | — | — |
| € | € | € |
What’s new
-
Legacy references without a semicolon, such as & or ©, now decode as a browser shows them.
Next steps
HTML Entity Encoder / Decoder related tools and articles
The closest follow-up checks and guides for this tool.