HTML Entities Encode / Decode
Escape or unescape HTML special characters.
About this tool
Encode characters like <, >, &, and quotes into HTML entities, or decode entity sequences back to plain text. Handy for XSS-safe snippets, CMS content, and XML/HTML debugging.
What you get
- Named and numeric entity encoding
- Decoded plain text from entity input
- Live encode/decode with copy
How to use
Switch encode or decode, paste your string, and copy the result into HTML or your editor.
FAQ
How to escape HTML special characters?
Paste your string in Encode mode to turn <, >, &, quotes, and other symbols into named or numeric HTML entities.
How to decode HTML entities online?
Switch to Decode and paste entity sequences like & or ' to recover the original plain text.
What characters need HTML encoding?
At minimum encode <, >, &, and double quotes when inserting untrusted text into HTML to prevent markup injection and broken attributes.
When should I use HTML entity encoding?
Use it when displaying user input in HTML, preparing CMS content, or debugging XML/HTML snippets that must render safely.
By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.