← All toolsDeveloper›Text & Patterns
String Escape / Unescape
Escape or unescape strings for JSON, JavaScript, HTML or URLs — quotes, new lines, tabs and Unicode.
Tip from Tink: Use JSON mode when putting text inside a JSON string value.
He said \"hi\"\n\tand left → 🚀
Advertisement
How to use the String Escape / Unescape
- Paste text.
- Pick the format and Escape or Unescape.
- Copy the output.
Everything runs in your browser. Nothing you enter is uploaded.