Output will appear here
Output will appear here
SQL String Escape
Select your database dialect (MySQL, Postgres, SQLite) to escape single quotes, backslashes, and more. A context-dependent tool outputting safe database strings.
Use Cases
- Generating safe literals to copy/paste into manual repair scripts
- Testing the correct representation of names like O'Brian inserted natively
Frequently Asked Questions
Can this unescape my database dumps?
SQL unescaping is highly context-dependent on how the original driver serialized it. We only support one-way escaping generation to secure raw strings.