SQL Escape Unescape
Escape or unescape SQL string literal special characters.
When to use this tool
Useful when writing raw SQL queries that include string literals with single quotes, especially in migration scripts or seed data. Also helpful for understanding how SQL databases interpret escaped strings when reviewing query logs or debugging syntax errors.
How to use
Paste the text containing single quotes or other SQL-special characters into the input. Use "Escape" to double up single quotes as required by SQL string literals. Use "Unescape" to convert escaped SQL strings back to plain text.