SQL to CSV

Your data never leaves your browser

Convert SQL INSERT statements into CSV with column headers and data rows.

Brie — Bug Reporting Tool

Found a bug while testing?

Brie captures screenshots, console logs, network data, and session replays in one click — so developers get the full context without the back-and-forth.

About SQL to CSV

Paste your SQL INSERT INTO ... VALUES statements and instantly get a CSV file. Column names are taken from the INSERT clause and each VALUES tuple becomes a row. Strings with commas or quotes are automatically escaped per RFC 4180.

How to use

  1. Paste your SQL INSERT statement into the input panel.
  2. The CSV output with headers and rows appears instantly in the output panel.
  3. Click Copy or save the output as a .csv file.

More CSV / Data Tools

Frequently Asked Questions

FAQs about SQL to CSV

Does this support multiple rows in one INSERT?

Yes. A single INSERT INTO ... VALUES statement with multiple value tuples produces multiple CSV rows.

How are NULL values handled?

SQL NULL values are converted to empty CSV fields.

Are quoted strings with commas handled correctly?

Yes. String values containing commas or double quotes are wrapped in double quotes with internal quotes escaped as "" per the CSV standard.

What is the difference between this and SQL to JSON?

SQL to JSON (in JSON Tools) produces a JSON array of objects. This tool produces a flat CSV file that is easier to open in spreadsheet applications.

Is my data safe?

All conversion runs in your browser. No SQL is ever sent to a server.