FreeDev Tools

SQL Escape

Escape text for SQL string literals β€” doubles single quotes, optional full literal output.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste the text

    Any text containing quotes or special characters.

  2. 2

    Choose the style

    Standard SQL ('') or MySQL backslash escaping.

  3. 3

    Copy the literal

    With wrapping enabled the output drops straight into a query.

Frequently Asked Questions

Standard SQL doubles the single quote: O'Brien becomes 'O''Brien'. MySQL also accepts backslash escaping (\'), which the MySQL style option produces along with \n for newlines.