String Escaper (JS/JSON/Regex/Shell)
Escape strings for JS quotes, JSON, Python, regex, and shell online. Paste raw text, get paste-ready literals.
String escaper → JS double-quote
Output
"Say \"hi\"\nC:\\path\\file.txt"
How to use
- Paste input or drop a file above.
- Adjust options (delimiter, dialect, quality, ratio).
- Copy result or download — no sign-up needed.
FAQ
Which JS quote?
Both offered — pick the one your codebase uses; newlines become \n either way.
Shell safe?
Single-quote wrapping with '\'' escaping — the POSIX-safe pattern.