String Escaper
Escapes and unescapes text for JSON string literals, POSIX shell quoting, regex literals, SQL strings, CSV fields, and HTML — with highlighted special characters, double-escape warnings, and copy with or without surrounding quotes.
Runs 100% in your browser — nothing you paste leaves your device.
Read the full guide to this tool
Notes
- Shell mode wraps values in single quotes and rewrites embedded apostrophes as '\'' — safe for arbitrary text in POSIX shells.
- Regex mode backslash-protects metacharacters so the text matches literally.
- A chain warning flags input that already looks escaped so you do not double-escape.
- Runs 100% in your browser — nothing you paste leaves your device.