← Tools
JSON to CSV & SQL Converter
Convert JSON to CSV or SQL online for free in your browser. Flatten nested objects and trees, preview rows, and export CSV or CREATE TABLE and INSERT SQL.
How nested JSON becomes CSV and SQL
Choose a JSON file or load the sample. Each object in an array becomes a row. Nested fields use dot-separated column names. For example, this input
[{"id":1,"user":{"name":"Ada"}}]produces these CSV columns and one row:
id,user.name
1,Adaand this SQL output with inferred column types:
CREATE TABLE "json_records" (
"id" INTEGER,
"user.name" TEXT
);
INSERT INTO "json_records" ("id", "user.name") VALUES
(1, 'Ada');For trees with a children array, the export includes parent_id, __depth, and __path. The on-page preview shows up to 12 rows. Download CSV and Download SQL export the full dataset locally in your browser.