SQL Escape / Unescape

Escape string values for safe use in SQL queries. Standard SQL and PostgreSQL double single quotes; MySQL additionally escapes backslashes and control characters.

SQL Dialect
Input
Output

Paste text above and click Escape or Unescape.