Convert · Runs in your browser
SQL to JSON Converter
Convert SQL INSERT statements — or a whole dump file — into a JSON array of objects.
SQL
Drop a file to load it
JSON
How to use it
- Paste INSERT INTO … VALUES statements, or a mysqldump / pg_dump excerpt.
- Each row becomes an object, keyed by column name.
- Copy the JSON or download it as a .json file.
Column names
Names come from the INSERT column list. If it has none, the matching CREATE TABLE statement is used; otherwise columns are named column1, column2…
Values
Strings, numbers, NULL, TRUE/FALSE and escaped quotes are understood. Function calls like NOW() are kept as text.
Several tables
If the input inserts into more than one table, the output is an object with one array per table.
More convert tools
All free, all private, all running locally in your browser.
JSON to CSVTurn JSON arrays into spreadsheet rowsCSV to JSONTurn spreadsheets into JSONJSON to XMLConvert JSON to well-formed XMLXML to JSONParse XML into JSONJSON to YAMLConvert JSON to readable YAMLYAML to JSONConvert YAML config to JSONJSON to ExcelDownload JSON as an .xlsx fileExcel to JSONConvert .xlsx sheets to JSONJSON to SQLGenerate INSERT statementsJSON to MarkdownTurn JSON into a Markdown tableFlatten JSONFlatten or unflatten nested JSON