SQL Escape / Unescape

Escape single quotes, backslashes and other special characters to reduce SQL injection risk, with a reverse unescape mode for debugging.

How to use SQL Escape / Unescape

  1. Paste a string containing quotes or backslashes into the SQL box
  2. Click Escape to get a safely escaped string
  3. Click Unescape to restore it

Features

FAQ

Is this tool free?
Completely free, no sign-up or login, unlimited uses.
Will my data be uploaded?
No. All computation runs locally in your browser; your input never leaves your device.
How do I use it?
Fill in the box above, click the matching button to get the result, then click Copy to take it away.
Does escaping prevent injection?
Escaping is only a basic defense; in production always prefer parameterized queries (Prepared Statements). Use escaping as a fallback and for troubleshooting.