HTML Entity & Character Reference Studio
Encode text into Named HTML5 entities (©, &), Decimal (&#NNN;), and Hex (&#xNNN;), or decode entities back to plain Unicode text.
Character-by-Character HTML Entity Anatomy
| Glyph | Unicode Codepoint | Decimal Reference | Hexadecimal Reference | Named Entity |
|---|---|---|---|---|
| < | U+003C | < | < | < |
| d | U+0064 | d | d | — |
| i | U+0069 | i | i | — |
| v | U+0076 | v | v | — |
| U+0020 |   |   | — | |
| c | U+0063 | c | c | — |
| l | U+006C | l | l | — |
| a | U+0061 | a | a | — |
| s | U+0073 | s | s | — |
| s | U+0073 | s | s | — |
| = | U+003D | = | = | — |
| " | U+0022 | " | " | " |
| b | U+0062 | b | b | — |
| o | U+006F | o | o | — |
| x | U+0078 | x | x | — |
| " | U+0022 | " | " | " |
| > | U+003E | > | > | > |
| © | U+00A9 | © | © | © |
| U+0020 |   |   | — | |
| 2 | U+0032 | 2 | 2 | — |
| 0 | U+0030 | 0 | 0 | — |
| 2 | U+0032 | 2 | 2 | — |
| 6 | U+0036 | 6 | 6 | — |
| U+0020 |   |   | — | |
| A | U+0041 | A | A | — |
HTML Entities Encoding & Decoding Ready to Run
Using standard library html module.
The Architecture of HTML Character Entities & Security (W3C HTML5)
In the HTML5 specification (Section 12.1.4), Character References allow authors to include characters that are either impossible to type directly on standard keyboards or reserved by HTML markup syntax.
< (<), > (>), & (&), " ("), and ' (') — prevent malicious scripts from executing in browsers.© (©), € (€), — (—), and ∞ (∞) ensure flawless cross-platform typography.Decimal vs. Hexadecimal vs. Named References
- •Named Entities: Human-readable (e.g.
™). Supported across all HTML5 parsers. - •Decimal References: Format
&#NNN;(e.g.©). Supported in XML, SVG, and HTML. - •Hexadecimal References: Format
&#xNNN;(e.g.©). Directly maps to Unicode codepoint hex numbers. - •Emoji & CJK Support: Easily encode 4-byte astral plane emojis like 🚀 (
🚀/🚀).
Frequently Asked Questions (FAQs)
Why should I escape HTML entities in web applications?+
Unescaped user input can lead to Cross-Site Scripting (XSS) vulnerabilities where malicious users inject JavaScript tags (<script>) into your website. Escaping < to < ensures the code renders safely as plain text.
Can I decode mixed documents containing named, hex, and decimal entities simultaneously?+
Yes! Select the "Decode" mode. Our parser automatically resolves all W3C named references (©), decimal codes (©), and hex references (©) in a single pass.
What is the entity for the non-breaking space?+
The non-breaking space (U+00A0) is represented by the named entity or decimal  . It prevents automatic line breaks between adjacent words.