How to use it
- 1Paste your SQL or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the JSON or download it. Drop several files to convert a batch into one ZIP.
How SQL becomes JSON
Every row in the SQL input becomes one record in the JSON output, and the header row supplies the field names. Column order is preserved.
Cells are typed where the meaning is unambiguous: 42 and 3.14 become numbers, true and false become booleans, and an empty cell becomes null. Anything that only looks numeric — 00501, +44 20 7946 0958, a 19-digit order ID — stays a string, because turning it into a number would corrupt it.
SQL and JSON, briefly
SQL INSERT scripts are the most portable way to load rows into a relational database: any client can run them, and they can be reviewed and version-controlled like code.
JSON is the default language of web APIs and document databases. It nests objects and arrays to any depth and distinguishes strings, numbers, booleans and null, but has no comments and no date type.
Questions
Which SQL statements does it read?
INSERT INTO … VALUES statements, including multi-row inserts and mysqldump output. Column names come from the INSERT's column list, or from a CREATE TABLE statement in the same script when the INSERT doesn't list them.
Does the converter guess data types?
Yes, unless you turn it off. Whole numbers, decimals, true and false become real JSON numbers and booleans. Values with leading zeros (like ZIP code 00501), numbers longer than 15 digits and anything that isn't unambiguously numeric stay as strings, so IDs and phone numbers survive intact.