HTML Entity Encoder
The HTML Entity Encoder converts special characters to entities so they render safely in markup, and decodes entities back to text.
Key Features
- Named and numeric entities
- Encode or decode
- Handle attributes and text
- Local only
Use Cases
- Escape user input for display
- Decode a copied snippet
- Teach HTML escaping
- Fix broken characters
How to Use
- Paste the text or entities
- Choose a direction
- Convert and copy
Practical Tips
- Escape <, > and & in attributes
- Use UTF-8 to avoid most entities
- Decode before re-escaping
FAQ
- Why encode?
- So characters are not parsed as markup.
- Named vs numeric?
- Both work; numeric is universal.