HTML Escape / Unescape

Escape HTML special characters to entities and unescape HTML entities back to characters.

Frequently asked questions

Why escape HTML?
Escaping HTML prevents cross-site scripting (XSS) attacks by converting special characters like < > " & into their HTML entity equivalents. Always escape user-generated content before rendering it in HTML.