Generate INSERT statements from JSON, with per-dialect identifier quoting and correct literal escaping.
CSV to SQL Inserts
Convert CSV rows into SQL INSERT statements with per-dialect quoting.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Processed entirely in your browser. Nothing is uploaded.
Double-quoted identifiers
Try an example
Fill in Input to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste your CSV or TSV data. The delimiter is detected by counting candidates outside quoted fields.
- 2
Structural problems are reported as warnings with line numbers: ragged rows, duplicate column names, an unterminated quote, a stray BOM.
- 3
Copy or download the result.
Questions about CSV to SQL Inserts
Is this safe to run?
The escaping is correct, so the statements are safe to paste. But the generated file says in a header comment that parameterised queries are the right approach for runtime input - this is for seeding and fixtures.
Will this handle quoted fields and embedded commas?
Yes. The parser implements RFC 4180 properly: quoted fields, delimiters and newlines inside quotes, and doubled quotes as a literal quote. That is the case a split-on-comma implementation gets wrong, and it is most real data.
Is my data sent anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.
Does the CSV to SQL Inserts work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the CSV to SQL Inserts keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the CSV to SQL Inserts uploaded or stored?
No. The CSV to SQL Inserts runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Format SQL by clause, with keyword casing and parenthesis indentation, preserving strings and comments exactly.
Escape a string for use as a SQL literal by doubling single quotes, the standard escape.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.