SQL to CSV Converter
Extract the data from SQL INSERT statements and export it as CSV. Handles quoted strings, escaped quotes, NULLs, numbers and nested function calls, so a database dump becomes a spreadsheet in seconds.
How to Use
Paste SQL containing one or more INSERT statements. The parser finds every row, works out the column list from the statement, and writes a CSV with a header row. Rows from different tables are labelled so you can tell them apart.
- Multiple INSERT statements in one paste
- Quoted strings and doubled-quote escapes
- NULL, numbers, booleans and functions preserved
- CSV or TSV output with optional header
- Copy or download the result
Related Developer Tools
You might also need
Tools from other categories that people pair with the SQL to CSV: