About SQL to CSV
This tool turns SQL INSERT statements into CSV with a header row. Paste your INSERT statements and it reads the columns and values into a clean CSV table. It runs in your browser, so your data is never uploaded.
How SQL to CSV works
How to use it
- Paste your INSERT statements.
- Copy the generated CSV.
How it works
It reads the column list from the first INSERT and the values from every statement, handling quoted strings, escaped quotes and NULLs, then outputs a CSV with a header row. It works best with standard INSERT … VALUES … statements.
Common uses
- Export SQL inserts to CSV
- Open database data in a spreadsheet
- Convert a SQL dump
- Review insert data as a table
- Share rows as CSV
- Migrate between formats
- Extract values from SQL
- Turn inserts into a spreadsheet
Frequently asked questions
How do I convert SQL to CSV?
Paste INSERT statements and copy the CSV output.
What statements are supported?
Standard INSERT INTO table (cols) VALUES (…) statements.
Does it add a header?
Yes — from the column names in the INSERT.
Are NULLs handled?
Yes — NULL becomes an empty cell.
Is my data uploaded?
No — it converts in your browser.
Can it read multiple rows?
Yes — including multiple value tuples.
Is it free?
Yes — completely free with no sign-up.