SQL to CSV Converter

Runs in your browser — your files are never uploaded.

Pull the data out of a .sql dump without standing up a database to import it into first. OkConverter reads the INSERT statements, takes the column names from the statement itself, and writes a CSV you can open in a spreadsheet. Quoted values containing commas, parentheses or escaped quotes are handled properly, and NULL becomes an empty cell rather than the literal text. Runs entirely in your browser.

How to convert SQL to CSV

  1. 1

    Drop your .sql file onto the box, or click to choose one.

  2. 2

    The INSERT statements are read and their rows collected.

  3. 3

    Click “Download” to save your .csv file.

Share

Embed this tool on your site

Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.

Please keep the attribution line — it's what keeps these tools free.

Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.

Frequently asked questions

Does it run the SQL?+

No, and it has no database to run it against. It reads the text of INSERT ... VALUES statements and extracts the literal values — nothing is executed and nothing is uploaded.

What happens to CREATE TABLE and the rest of the dump?+

It is ignored, along with comments, indexes and constraints. A CSV can only represent rows, so a full SQL parser would be a large amount of work for no extra output.

What if my dump has no column names?+

Some dumps write INSERT INTO t VALUES (…) with no column list. The rows are still extracted and the columns are named positionally — column_1, column_2 — which you can rename in your spreadsheet.

Are multi-row INSERT statements supported?+

Yes. A single statement with many tuples — VALUES (…),(…),(…) — is the normal shape of a mysqldump, and every tuple is read.

How is NULL handled?+

It becomes an empty cell. CSV has no way to distinguish NULL from an empty string, so an empty cell is the closest honest representation.