Withdata Software

Convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL

Want to convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL file?

Try Withdata Data File Converter, a JSON lines to SQL converter for Windows, Mac, and Linux, Convert JSON Lines to SQL, Easy and Fast.

Download Withdata 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

JSON Lines text format (JSONL), also called Newline-delimited JSON (NDJSON), or Line-delimited JSON (LDJSON). JSON Lines files may be saved with the file extension .jsonl, *.ndjson, *.ldjson.

Convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL file

Choose JSON Lines (JSONL / NDJSON / LDJSON) file -> Set target SQL file -> Convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL

Click “Start a New Convert” at task dialog.

then show the wizard.

Select source/target file type.

1. Open a JSON Lines (JSONL / NDJSON / LDJSON) file.

2. Config target SQL file.

3. Set rows options.

4. Convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL.

See SQL file

Convert JSON Lines (JSONL / NDJSON / LDJSON) to SQL in command line

Save “JSON Lines (JSONL / NDJSON / LDJSON) to SQL” session, then you can:

Set scheduled tasks for converting JSON Lines (JSONL / NDJSON / LDJSON) to SQL

You can schedule and automate this converting task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for “JSON Lines to SQL” conversion.
  2. Set scheduled task for “JSON Lines to SQL” conversion.

FAQ

What is Withdata DataFileConverter?
Withdata DataFileConverter is a data file format converter, it can convert JSON lines (JSONL / NDJSON / LDJSON) to SQL. Download Withdata DataFileConverter
How long does it take to convert JSON Lines to SQL?
DataFileConverter works fast. It convert millions of rows within a minute.
Is it safe to convert JSON Lines to SQL using DataFileConverter?
Of course! DataFileConverter convert JSON Lines to SQL privately, absolutely safe.
Can I convert JSON Lines to SQL on Linux, Mac OS?
Yes, you can. DataFileConverter has Linux, Mac OS, and Windows version.
Can I convert JSON Lines to SQL in command line?
Yes, you can. DataFileConverter can running in command line, on Linux, Mac OS, and Windows.

More tools for JSONL / NDJSON / LDJSON.

JSON Lines → SQL reference

Type mapping

Value kindin JSON Linesin 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"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 on the same lineJSON / TEXT

Dialect differences

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

Propertyin JSON Linesin SQL
identifiersDouble quotes; backslash escapes (a newline inside a string...Two competing conventions: single-quoted literals and diale...
datesNo date type: dates arrive as stringsDepends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryNot supported natively - base64 inside a stringDialect-specific: X-quoted literal, 0x hex, or decode()
separatorNewline between recordsStatement terminators (;)
encodingUTF-8 by definitionNo declaration
typingSame as JSON, but records cannot nest across linesTypes belong to the target database, and they differ betwee...
shapeFlat streamStatements; a dump usually means CREATE TABLE plus INSERT rows
ceilingStreams, so it scales past what a single JSON document can ...No formal limit, but a single INSERT statement has to fit i...

Do it online, free

Skip the manual work — convert JSON to SQL online, free (runs in your browser, nothing is uploaded). For large files or batch jobs, use the desktop apps.