Skip to main content
HandyWeb

SQL to CSV Converter

Paste a SQL file or a mysqldump export and get the data in its INSERT statements as CSV for Excel, one table at a time. No SQL is run.

0 characters0 bytes
0 characters0 bytes

Only INSERT … VALUES statements are read, and no SQL runs. Values such as NOW() are kept as text.

How to Use It

  1. Paste the SQL.
  2. Choose the table if necessary.
  3. Copy or download the CSV.

Questions and Answers

Is my SQL run?

No. The tool only reads the text of the statements. No database is involved.

Good to Know

INSERT … VALUES only. Other statements, INSERT … SELECT, and PostgreSQL COPY are not read. If an INSERT has no column names, the columns are numbered.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)