Withdata Software

Batch convert JSON files to SQL files

Want to batch convert JSON files to SQL files?

Try Withdata Data File Converter, a desktop JSON to SQL converter for Windows, MacOS, and Linux, Batch convert JSON to SQL, Easy and Fast.

Download DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit

Batch convert JSON files to SQL files

Select source JSON files -> Set SQL files -> Convert JSON files to SQL files

Click “Start a New Convert” at task dialog.

then show the wizard.

Select From “Files” “JSON” To “Files” “SQL”.

1. Select source JSON files.

And config the first source JSON file.

2. Config target SQL files.

3. Summary.

List source JSON files.

4. Convert JSON files to SQL files, 1 JSON to 1 SQL.

After converting, you can view output SQL files.


More about JSON to SQL converter

See Video: Bulk convert JSON files to SQL files without coding

See also:

JSON → SQL reference

Type mapping

Value kindin JSONin SQL
Int1234 (number)INT
Bigint9007199254740993BIGINT
Decimal1234.56 (number)DECIMAL(p,s)
Float1.234e10 (number)DOUBLE PRECISION
Text"text" (string)VARCHAR(n)
Long text"multi-line\ntext" (escaped newline inside a string)TEXT / CLOB
Date"2026-09-18" (string)DATE
Datetime"2026-09-18T14:30:00Z" (string)TIMESTAMP
Binary"base64:..." (string)BLOB / BYTEA
Booleantrue / false (boolean)BOOLEAN / SMALLINT
JSONnested object or array, kept as structureJSON / TEXT

Dialect differences

Both JSON and SQL are file formats, so what differs below is how each one chooses to represent a value.

Propertyin JSONin SQL
identifiersDouble quotes; backslash escapesTwo competing conventions: single-quoted literals and diale...
datesNo date type: dates arrive as strings and the reader must p...Depends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryNot supported natively - base64 inside a stringDialect-specific: X-quoted literal, 0x hex, or decode()
separatorBraces and commasStatement terminators (;)
encodingUTF-8 by definitionNo declaration
typingstring, number, boolean, null, object, array - no date typeTypes belong to the target database, and they differ betwee...
shapeNested objects and arraysStatements; a dump usually means CREATE TABLE plus INSERT rows
ceilingWhole document is usually parsed into memoryNo formal limit, but a single INSERT statement has to fit i...

Data File Converter without the manual work

For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.