SQL String Escape Online — Quote Doubling Tool
Escape or unescape strings for JSON, JavaScript/TypeScript, SQL and regex — live, entirely in your browser.
Processing...
0%
Result
This page opens the string escaper with SQL mode preselected — paste a string like a name or a search term and see it escaped for a SQL string literal as you type.
SQL escaping here doubles single quotes (O'Brien becomes O''Brien), the classic ANSI SQL rule for embedding a literal quote inside a quoted string.
Important: this is for understanding SQL escaping and quick one-off scripts only — it is not a substitute for parameterized queries or prepared statements in real applications, and the page keeps that warning visible. The full tool also escapes JSON, JavaScript and regex strings, all locally in your browser.