HTML Entity Encoder / Decoder
Convert special characters to HTML entities and decode them back. Supports named & numeric entities.
📚 Common HTML Entities Reference
How to Use
- Choose Encode or Decode mode.
- Paste your text into the input panel.
- Click Convert to process.
- Copy the result with the Copy button.
Features
Two-Way
Encode to entities and decode back.
Named Entities
Uses & style named references.
Numeric
Also supports { numeric entities.
Reference
Built-in common entities cheat sheet.
Use Cases
- HTML Templates: Escape special characters for safe HTML rendering.
- Email Templates: Encode symbols that may break email clients.
- CMS Content: Prepare text for WordPress or other CMS platforms.
- Security: Prevent XSS by encoding user-generated content.
HTML Entities Explained
HTML entities are special sequences that represent characters which have meaning in HTML syntax. For example, < represents the less-than sign (<) because using the raw character would be interpreted as an HTML tag. Similarly, & represents the ampersand (&). Proper encoding prevents rendering errors and cross-site scripting (XSS) vulnerabilities.
Developer Workflow
After encoding your HTML content, validate the output with the HTML Minifier. Test rendered output in the Online Code Editor. Encode URLs separately with the URL Encoder Decoder. For Base64 encoding, use the Base64 Encoder.
Frequently Asked Questions
What characters are encoded by default?
By default: < > & " ' are encoded. Enable "Encode all" to encode every non-ASCII character.
What is the difference between named and numeric?
Named entities use words (&) while numeric use code points (&). Named are more readable; numeric work universally.
Does it handle Unicode?
Yes. Unicode characters beyond ASCII are converted to numeric HTML entities.
Can I decode any HTML entities?
Yes. Both named (&) and numeric (& and &) entities are decoded.
Is it free?
Yes, 100% free with no limits.