Convert SQL INSERT Statements to CSV Online
Database backups and migration files are often stored as SQL dump files full of INSERT statements. To load this data into spreadsheets, analytics tools, or other databases that don't speak SQL, you first need to extract the raw data as CSV. This tool parses SQL files entirely in your browser and outputs clean CSV without any server round-trip.
Three Supported Input Modes
- SQL INSERT mode โ Parses standard INSERT INTO โฆ VALUES statements as produced by mysqldump, pg_dump, or phpMyAdmin. Handles multi-row VALUES blocks, NULL literals, and escaped quotes.
- MySQL tabular output โ Parses the pipe-delimited table format that mysql CLI prints (e.g.,
| id | name | email |) and converts rows to CSV. - PostgreSQL COPY output โ Parses the tab-separated output from PostgreSQL's COPY โฆ TO STDOUT command, handling backslash escapes and \N NULL markers.
Common Workflows
This tool is ideal for extracting specific table data from large SQL dump files, converting a database export so it can be opened in Excel or Google Sheets, migrating data from a SQL-based source into a CSV-only destination like Airtable or Notion databases, and quickly inspecting the contents of a SQL dump without needing a running database server.