Data Processing · CSV interoperability

SQL INSERT to CSV — process data locally.

Parse ordinary SQL INSERT statements with explicit columns into spreadsheet-ready CSV.

Private data workspaceProcesses locally · up to 2 million characters per input
Ready

Note: Supports INSERT INTO table (columns) VALUES (literal tuples), single-quoted text, doubled quotes, numeric literals, booleans and NULL. SQL expressions, subqueries, functions, named parameters and multi-table joins are unsupported. Never executes SQL.

How to use this tool

Process data in your browser

Paste your data or select a local UTF-8 file. Adjust the settings if available, then choose Convert SQL INSERT to CSV. Copy the result or download the generated file. The input stays in your browser.

Supported behavior and limitations

Supports INSERT INTO table (columns) VALUES (literal tuples), single-quoted text, doubled quotes, numeric literals, booleans and NULL. SQL expressions, subqueries, functions, named parameters and multi-table joins are unsupported. Never executes SQL.

Input is limited to 2 million characters per editor. If your file is larger, use a dedicated desktop data tool. This utility does not execute SQL or scripts embedded in your input.

Practical walkthrough

Extract rows from a simple SQL INSERT statement

A legacy export contains literal INSERT statements rather than a CSV file, and you want to inspect its rows in a spreadsheet.

Supported SQL example

INSERT INTO "people" ("name", "city") VALUES ('Alice', 'Hanoi'), ('Bob', 'Da Nang');

Expected behavior

The parser extracts name and city columns and the two literal rows into a CSV table. It does not connect to or query a database.

Check before using the output

Only supported INSERT INTO ... VALUES syntax is parsed. Expressions, functions, subqueries and parameters are not executed or interpreted.

Next step: Generate SQL INSERT statements from CSV.