Turn INSERT values into JSON records
- Paste one INSERT INTO statement with explicit columns and VALUES tuples.
- Convert the SQL literals into JSON objects.
- Check field names, nulls and quoted text before copying or downloading the JSON.
Worked example
INSERT INTO users (id, name) VALUES (1, 'Ana'); becomes [{"id":1,"name":"Ana"}]. Each VALUES tuple becomes one object with the named columns.
Input and output
Paste one INSERT statement with the columns in the order used by each tuple. For an order export, compare the first object's order number, customer name and amount with the corresponding values in the statement. The output is an array even when the statement contains just one row.
Format and size limits
Use plain column identifiers and at most 10,000 rows. The parser can translate literal values but cannot look up a default, evaluate a function or query another table. A quoted number remains text, which matters for identifiers with leading zeros.
If processing fails
When a tuple has the wrong number of values, find the first record that differs from the column list. Check quoted names containing apostrophes or commas before adding a placeholder. If you need the result of an expression, export evaluated data from the database in your own environment.
Questions about this tool
Does conversion execute SQL or connect to a database?
No. It parses supported SQL text in the browser. The converter does not run the statement.
Can it convert a full database dump?
No. It handles one simple INSERT with literal VALUES, not multiple statements, functions, subqueries or dialect-specific binary values.
How it works
The parser handles common SQL text, quoted strings with doubled quotes, numbers, booleans and NULL literals. It retains column order and pairs each INSERT tuple with the column list.
Important limitations
This intentionally handles simple INSERT INTO table (columns) VALUES (...) statements only, not subqueries, SQL functions, escaped dialect-specific blobs or multiple statements. Never run untrusted SQL.
