SQL to CSV

Got data only as a .sql dump or a pile of INSERT INTO … VALUES statements? Paste them and get a clean CSV that opens in Excel or Google Sheets - without loading a database.

Output

Free · No sign-up · Your files are processed on your device and never uploaded

How to use SQL to CSV

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Copy or download

    Copy the result or save it as a file. What you typed never leaves your device.

Features

  • Multi-row INSERTs and many single INSERT statements.
  • Column names from the INSERT; column_1, column_2… when there are none.
  • Handles 'quoted' text, escaped quotes, commas inside values and NULL.
  • Several tables in one dump become separate CSV blocks.
  • JSON output with numbers kept as numbers.

How to use it

Paste the INSERT statements (from mysqldump, pg_dump --inserts, SQLite .dump or phpMyAdmin export).

Choose CSV or JSON. The result appears as you paste.

Download the .csv and open it in Excel, or copy the JSON.

Free and private

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Does it run my SQL?

No. The VALUES are read as text - nothing is executed, so it is safe with any dump.

My dump is very large

Dumps up to a few megabytes convert instantly in the browser. Split very large ones per table.

Is my company data uploaded?

No. The conversion happens in your browser, so database dumps never leave your computer.

Is it free?

Yes - free and unlimited, with no sign-up and no watermark.

More ways to use SQL to CSV

More developer tools

All tools →