Withdata Software

Convert TXT to JSON lines (JSONL / NDJSON / LDJSON)

Want to convert TXT to JSON lines (JSONL / NDJSON / LDJSON)?

Try Withdata Data File Converter, a desktop TXT to JSON converter for Windows, MacOS, and Linux, Convert TXT to JSON lines, 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

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 TXT to JSON lines (JSONL / NDJSON / LDJSON)

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

Click “Start a New Convert” at task dialog.

then show the wizard.

Select source/target file type.

1. Open a TXT file.

The TXT content:

2. Config target JSON Lines (JSONL / NDJSON / LDJSON) file.

3. Set rows options.

4. Convert TXT to JSON lines (JSONL / NDJSON / LDJSON).

See JSON lines file

Convert TXT to JSON lines (JSONL / NDJSON / LDJSON) in command line

Save “TXT to JSON Lines” session, then you can:

Set scheduled tasks for converting TXT to JSON lines (JSONL / NDJSON / LDJSON)

You can schedule and automate this converting task by:

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

FAQ

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

More tools for JSONL / NDJSON / LDJSON.

TXT → JSON Lines reference

Type mapping

Value kindin TXTin JSON Lines
Int1234, or right-aligned in a fixed-width column1234 (number)
Decimal1234.561234.56 (number)
Float1.234e+101.234e10 (number)
Textwritten as-is; padding depends on the chosen layout"text" (string)
Long textwritten as-is"multi-line\ntext"
Datewhatever the writer chose"2026-09-18" (string)
Datetimewhatever the writer chose"2026-09-18T14:30:00Z" (string)
Binarynot representable"base64:..." (string)
BooleanY / N, or 1 / 0, or TRUE / FALSEtrue / false (boolean)
JSONwritten as-isnested object on the same line

Dialect differences

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

Propertyin TXTin JSON Lines
identifiersNone by conventionDouble quotes; backslash escapes (a newline inside a string...
datesWhatever the writer produced; no convention is guaranteedNo date type: dates arrive as strings
binaryNot supportedNot supported natively - base64 inside a string
separatorWhatever was chosen - often fixed column widthsNewline between records
encodingNo declaration - UTF-8 works only with a BOMUTF-8 by definition
typingNone - every field is textSame as JSON, but records cannot nest across lines
shapeFree form; a parser has to be told the layoutFlat stream
ceilingNo formal limitStreams, so it scales past what a single JSON document can ...

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.