Toolibra

SQL to CSV

Get a CSV file that opens in Excel, Google Sheets and any database import tool. Nested data is flattened into columns. SQL INSERT statements add rows to a database table; dumps from MySQL, PostgreSQL, SQL Server and SQLite are supported.

SQL input

CSV output

Nested data is flattened into columns with dotted names, like address.city.

🔒 Your files are processed on your device and are never uploaded.

How to use

  1. 1Paste your SQL data, or open a .sql file. You can also try the sample.
  2. 2Check the preview and adjust the options if you need.
  3. 3Copy the CSV or download it as a file.

Frequently asked questions

How do I convert SQL to CSV?

Paste your SQL data, or open a .sql file. You can also try the sample. The CSV result appears instantly; then copy it or download it.

Is my data uploaded?

No. The conversion runs inside your browser, so your data never leaves your device. It works with large files too.

Which SQL is supported?

INSERT INTO … VALUES statements, with one or many rows, from MySQL, PostgreSQL, SQL Server and SQLite dumps. Column names come from the INSERT or from a CREATE TABLE in the same file. Several tables are kept apart.

More free tools