SQL String Escape
SQL escape with lengths.
Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries.
What SQL String Escape does
Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries.
SQL String Escape sits in the Developer group on purpose. It is not SQL Formatter (Pretty-print SQL with keyword casing and indent.) and not JSON String Escape (JSON escape with lengths.). Choose this page when you need SQL escape with lengths. If you stretch SQL String Escape into a neighbor’s job, the result will look wrong even though the site chrome looks the same.
How to use SQL String Escape
- Keep this tab on SQL String Escape (/developer/sql-escape). Pasting into the wrong Developer tool (for example SQL Formatter) changes the job.
- Paste or type the input SQL String Escape expects. Path hint: developer · sql escape. SQL escape with lengths.
- Apply the SQL String Escape action only. JSON String Escape is a different transform (JSON escape with lengths.). Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries.
- Copy the output of SQL String Escape if you need it elsewhere. Size/complexity still follows: Empty fails.
- If the text job is actually Pretty-print SQL with keyword casing and indent., leave SQL String Escape and open SQL Formatter.
When not to use SQL String Escape
Skip SQL String Escape when a neighbor tool matches better — start with SQL Formatter or JSON String Escape — or when the description already warns the job will fail. In the tool’s own words: Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries.
Questions about SQL String Escape
- What does SQL String Escape do that other Developer pages on this site do not?
- Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries. Short version: SQL escape with lengths.
- Does SQL String Escape upload my file or text to Tool-You servers?
- No. SQL String Escape runs in this browser tab. Files stay on the device. Limit note: Empty fails.
- Should I use SQL Formatter instead of SQL String Escape?
- Use SQL String Escape when you need SQL escape with lengths. Use SQL Formatter when you need Pretty-print SQL with keyword casing and indent. They share a category (Developer) but not the same job.
- What are the limits of SQL String Escape?
- Empty fails. Also: Wrap text as a single-quoted SQL string and escape inner quotes. Reports character and byte lengths before you paste into queries.