Skip to content

SQL String Escape

Escape text for an SQL string literal by doubling single quotes, or with MySQL backslash escapes.

Runs in your browserText → SQL string
Loading tool…

Example

Input
O'Reilly's
Output
O''Reilly''s

How to use the SQL String Escape

  1. Paste or type your Text into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the SQL string result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.
  • Escaping is no substitute for parameterised queries; use prepared statements in application code.

Browse all escape & unescape →