HTML Entity Encoder & Decoder
Convert special characters, symbols, and currency signs into named HTML5 entities, decimal codes, and hexadecimal values. Prevent XSS vulnerabilities and display symbols safely across any web browser.
100% In-Browser Privacy: Character transformations and regex replacements execute completely inside your browser client memory.
Interactive Character & Entity Lookup
Click any card to copy its named entity code directly to your clipboard.
Essential HTML5 Character Entities Master Cheat Sheet
| Glyph | Description | Named Entity | Decimal Code | Hex Code |
|---|---|---|---|---|
| & | Ampersand | & | & | & |
| < | Less than | < | < | < |
| > | Greater than | > | > | > |
| " | Double Quote | " | " | " |
| © | Copyright Symbol | © | © | © |
Named vs Decimal vs Hex Entities Comparison
| Entity Type | Syntax Example | Human Readability | XML / XHTML Strict Compatibility |
|---|---|---|---|
| Named Entities | € | Highest (semantic name) | Requires DTD declaration in pure XML (except the 5 XML core entities) |
| Decimal Numeric | € | Moderate (based on Unicode codepoint) | 100% Universal across XML, HTML, and SVG |
| Hexadecimal Numeric | € | Matches Unicode hex (U+20AC) | 100% Universal across all parsers |
How to Encode and Decode HTML Characters
Select Mode
Choose Encode to escape raw symbols, or Decode to convert entity codes back to readable characters.
Choose Entity Notation
Select Named for human readability (©) or Decimal / Hex for strict XML/SVG compatibility.
Type or Paste
Insert your text or use the interactive character palette to insert common symbols with 1 click.
Copy Result
Copy the encoded result into your HTML, JSX, markdown, or database without fear of parsing errors or XSS.