🍋 Developer Tools
String Escape / Unescape
Escape and unescape strings for JSON, HTML, URL, XML, CSV, SQL
chars
words
sentences
lines
Options
Type or paste something into the Input box to enable this button.
Results
None found.
Result
About String Escape / Unescape
Escape or unescape strings for use in JSON, HTML, URLs, XML, CSV, or SQL. Handles special characters, Unicode sequences, and encoding formats.
How It Works
Applies format-specific escaping rules: JSON uses backslash sequences (\n, \t, \u0000), HTML converts < > & to entities, URL uses percent-encoding, and SQL doubles single quotes.
Step by Step
- 1 Paste or type text in the input area
- 2 Select the format: JSON, HTML, URL, XML, CSV, or SQL
- 3 Choose direction: Escape or Unescape
- 4 Click Convert to transform the text
Tips
- Use JSON escape when embedding strings in API payloads
- URL encoding is required for query parameters with special characters
- HTML escaping prevents XSS attacks in web applications
Frequently Asked Questions
What characters are escaped in JSON?
Quotes (\"), backslashes (\\), newlines (\\n), tabs (\\t), and control characters below U+0020.
Is URL encoding the same as percent-encoding?
Yes. URL encoding and percent-encoding are the same thing — special characters are replaced with %XX hex values.