ToolSite

HTML Escape / Unescape

Escape text for safe embedding in HTML, or unescape HTML entities back to plain text. Handles named entities and numeric references.

Input
Text or entity-encoded text
Output
Entity-encoded or plain text
Privacy FirstWorks OfflineNo Uploads

FAQ

Which characters are escaped?
& (<) &gt; (&lt;) &amp; (>) and quotes (&quot; &#x27;). The encode function produces HTML-safe text; the decode function handles all named and numeric entities.
When would I use this?
When embedding user-generated content in HTML templates, protecting against XSS, or decoding HTML entity strings from APIs and databases.
Is my data uploaded anywhere?
No. All encoding and decoding happens locally in your browser.

Related tools