What is the Backslash Escape and Unescape?
Strings in code, config files and many languages need a backslash before quotes and special characters (\n for a new line, \t for a tab). Add the backslashes to make text safe, or remove them to read text copied from logs.
Features
Escape or unescape
Both directions.
Common sequences
\n, \t, \r, quotes and backslashes.
How to use the Backslash Escape and Unescape
- 1
Paste your text.
- 2
Pick add or remove.
- 3
Copy the result.
Who it is for
Logs
Read log lines full of \n and \"
Tips for better results
- For SQL, use your database driver's prepared statements instead of escaping by hand.
Questions people ask
Is it free?
Yes, free and private.
What is escaped?
Backslashes, both kinds of quotes, line breaks, tabs and carriage returns.