HTML Entity Encoder & Decoder — Convert Special Chars
Convert special characters to HTML entities and vice versa with our HTML Entity Encoder. The tool supports named entities (<, &, ©, ), decimal numeric entities ( ) and hexadecimal entities ( ). In named mode only the five HTML special characters are escaped; the "all named entities" mode also converts symbols such as ©, € or non-breaking spaces. Auto mode converts instantly as you type. Perfect for web developers who need to safely embed special characters in HTML code.
HTML5 Client-Side Only
Related tools
- JWT Decoder Decode and analyze JSON Web Tokens (JWT) with detailed header, payload, and signature inspection. Validates JWT structure and provides Base64 decoding insights.
- Punycode Converter Convert international domain names to Punycode and back. IDN converter supporting Unicode domains for DNS compatibility, also several domains at once, line by line.
- Base64 Encoder Base64 encoder and decoder for text and files with drag & drop support. URL-safe encoding and live preview for web development and APIs.
- URL Encoder URL encoder and decoder for query parameters and components. Parse protocol, host, path. Support for encodeURI and encodeURIComponent methods
Features
- Named Entities: Escape HTML special characters (<, >, &, ") or convert all known symbols like © and
- Numeric Entities: Decimal ( ) or hexadecimal ( ) format
- Bidirectional: Encode text to entities or decode entities to text
- Auto-Convert: Real-time conversion as you type
- Character Reference: Quick link to browse all available HTML entities
- Download Support: Save results as text file
Common Use Cases
HTML Development
- Display Code in HTML (<, >, &)
- Special Characters in Attributes
- Copyright & Trademark Symbols
- Non-Breaking Spaces
Data Processing
- XML/RSS Feed Content
- Email Template Generation
- Database Content Escaping
- Internationalization (i18n)
Important Entities
| Character | Named Entity | Decimal | Hex | Description |
|---|---|---|---|---|
| < | < | < | < | Less than |
| > | > | > | > | Greater than |
| & | & | & | & | Ampersand |
| " | " | " | " | Quote |
| |   |   | Non-breaking space | |
| © | © | © | © | Copyright |
| ® | ® | ® | ® | Registered |
View the complete list in our Character Reference
Useful Resources
Wikipedia: HTML Character Entities Beginner-friendly introduction to HTML character entities
HTML Standard: Named Character References Official WHATWG HTML specification for named entities
MDN: HTML Entities Comprehensive guide to HTML character entities
W3C: Using Character Escapes Best practices for using character escapes in markup and CSS