HTML Entity Encoder
Escape or unescape HTML special characters like <, >, &.
100% Free Forever
Result
Output appears hereFree HTML Entity Encoder
Escape or unescape HTML special characters like <, >, &, and ". Prevent XSS and safely display code snippets in HTML.
How to use this tool
- 1
Paste your text
Add the string to encode or decode.
- 2
Pick a direction
Encode for safe HTML; decode to plain text.
Pro tips
- Always encode user input before inserting it into HTML.
Frequently asked questions
What's the difference vs. URL encoding?
HTML entity encoding makes characters safe in HTML; URL encoding makes them safe in URLs.