Text Escape / Unescape
Escape special characters for HTML, JSON, URL, XML, and CSV
How to Use
- Enter text
Type or paste text you want to escape or unescape into the input area.
- Choose mode and direction
Select mode (HTML/JSON/URL/XML/CSV) and escape/unescape from the toolbar, then click "Convert".
- Copy result
Use the "Copy" button to copy the result to your clipboard.
Text Escape / Unescape Examples
HTML escape
<div class="test">&</div><div class="test">&</div>Converts to HTML entities.
JSON string escape
Hello "world"
New line TabHello \"world\"\nNew line\tTabEscapes characters for JSON strings.
Features
- HTML entity escape/unescape
- JSON string escape/unescape
- URL component escape/unescape
- XML escape/unescape
- CSV escape/unescape
- Local processing (your input is not sent to servers)
- Dark mode support
FAQ
What is the difference between escaping and encoding?
Escaping converts characters that have special meaning in a given context (HTML, JSON, etc.) into safe representations. Encoding is a broader concept of transforming data representation.
What is the difference between HTML and XML escaping?
HTML escaping converts special characters (<>&"'). XML escaping is similar, but ' is more standardized in XML than in HTML.
Is my data sent to a server?
No. All processing happens locally in your browser via JavaScript. No data is ever transmitted externally.