JSON to SQL converter
Turn a JSON list of objects into SQL INSERT statements, with an optional CREATE TABLE.
Database
Missing a feature or found a bug in JSON to SQL converter? Tell me on X (@_andrewtran) or by email.
How to use JSON to SQL converter
- Paste a JSON list of objects in the input pane.
- Set the table name and choose your database.
- Copy the SQL or download it as a .sql file.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
What if objects have different keys?
Every key found becomes a column. Where an object lacks a key, NULL is inserted.
How are nested values stored?
Objects and lists inside a row are written as JSON text, ready for a JSON or text column.
Related tools
JWT generator
Sign a JSON payload as a JWT with a secret (HS256) or a private key (RS256, ES256, EdDSA and more).2FA code generator
Generate time-based one-time codes (TOTP) from a secret or an otpauth:// link, to test sign-in flows.File hash checker
Get the SHA-256, SHA-1, SHA-384 and SHA-512 checksum of any file and verify a download.Image to Base64
Encode an image as a Base64 data URI, ready to paste into HTML or CSS.