String Escape / Unescape
Escape and unescape strings for JSON, HTML, URL, XML, CSV, SQL
Options
Results
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