JSONPath Tester
Run JSONPath expressions against a document and see every match live.
Turn an array of JSON records into INSERT statements, with an optional CREATE TABLE.
The JSON to SQL Insert converter turns an array of records into INSERT statements, with columns taken from the union of every record's keys, proper quote escaping, and an optional CREATE TABLE with inferred column types.
Paste an array of records and get the INSERT statements to load them. Columns are taken from the union of every record's keys, so a row missing a field gets NULL in that column rather than shifting the values along.
The escaping is the part that matters. Single quotes inside a value are doubled, numbers and booleans are written unquoted in the form the chosen dialect accepts, nulls become the NULL keyword rather than the string "null", and nested objects are serialised back to JSON text for a JSON column. You can emit one statement per row or a single multi-row insert, which is dramatically faster for a bulk load, and optionally a CREATE TABLE with column types inferred from the data.
Columns come from the union of every record, so a row that omits a field gets NULL rather than shifting the other values along.
Single quotes inside values are doubled, the SQL-standard escape that works in MySQL, PostgreSQL and SQLite alike.
Numbers and booleans are unquoted in the form the chosen dialect accepts, and null becomes the NULL keyword rather than the string "null".
One multi-row INSERT for a fast bulk load, or a statement per row when you need to run them selectively.
Column types are inferred from the sample — BIGINT, DOUBLE, BOOLEAN, TIMESTAMP or VARCHAR — as a starting point you can adjust.
An array of flat objects — one object per row you want inserted.
Set the target table name and pick your SQL dialect.
One INSERT per row for readability, or a single batched insert for speed.
Run the statements, adding the CREATE TABLE first if the table does not exist yet.
They are serialised back to a JSON string, which is what a JSON or TEXT column expects. Flatten the document first with the JSON Flattener if you want one column per leaf instead.
Yes. A single quote inside a value is doubled, which is the SQL standard escape and works in MySQL, PostgreSQL and SQLite alike.
Batched for bulk loading — one statement for a thousand rows is far faster than a thousand statements. Single-row when you need to run them selectively or read them in a review.
From the values in the sample: integers become BIGINT, decimals DOUBLE, booleans BOOLEAN, ISO timestamps TIMESTAMP and everything else VARCHAR(255). Review them before running against a real database.
What people who use the JSON to SQL Insert think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the JSON to SQL Insert. It takes half a minute and no account.
Write the first reviewRun JSONPath expressions against a document and see every match live.
Generate Luhn-valid test card numbers that no processor will ever charge.
Build CSS keyframe animations and watch them run as you edit.
Tidy a TOML file: consistent quoting, ordered tables, keys before headers.
Strip whitespace and optionally comments from XML, and see the bytes saved.
Convert between px, rem, em, pt, %, vw and vh with the right context.
Convert text to Base64 and back, with full Unicode support.
Fill in the fields and get a complete README.md in Markdown.