SQL to CSV
Export pasted result grids or INSERT VALUES rows to CSV for spreadsheets.
When to use this tool
- Exporting a quick result set from a SQL client that lacks CSV export.
- Turning `INSERT` values into a CSV for a spreadsheet review.
- Prepping a CSV template from SQL for a non-technical stakeholder.
How it works
- Paste either the result grid (tab-separated) or `INSERT INTO ... VALUES (...)` statements.
- Click convert.
- Copy the CSV output.
- Open in a spreadsheet to verify columns align.
Privacy: This tool runs entirely in your browser. Your input is not sent to our servers.
Tabular: paste query result grids (tabs or commas). INSERT mode supports simple literal VALUES lists.
Advertisement
Frequently asked questions
Does it guess the header row?
For pasted result grids, the first row is treated as the header. For `INSERT` statements, column names come from the statement when present.
How are NULLs represented?
NULLs are emitted as empty cells. If your downstream importer treats empty differently, post-process the CSV.
Can it handle multi-row INSERTs?
Yes. Each `(...)` tuple becomes a CSV row.