en

JSON to JSONL

Convert a JSON array to JSON Lines (NDJSON) locally - one record per line, no upload, right in your browser. No daily cap.

Running locally on your device ...

Running locally on your device ...

0%

Is my file uploaded?

No. Everything runs in your browser - your file never leaves your device. How this is verifiable

No upload100% local
Your content stays with youno third-party access
Hosted in GermanyGlobal Content Delivery
Independently auditedTLS A+ · HTTP headers A+

JSON Lines, also NDJSON, writes exactly one JSON value per line and is the preferred format for logs, streaming pipelines, database imports and machine-learning training data. A classic JSON array, by contrast, requires reading the whole file at once. This tool takes your JSON array and writes each entry as its own compact line.

The conversion runs entirely locally in your browser, in pure JavaScript. From an array of objects or values you get one compact JSON per line; the order is preserved. An object that wraps such an array (for example under the data key) is also recognised and its array is used. The result can be streamed line by line, processed with tools like jq, or loaded into a database in chunks.

This closes the round-trip: JSONL to JSON and now JSON to JSONL are both available locally. It stays honest about it: a single object without an array is written as one record on exactly one line; a scalar at the root or an object holding several separate arrays is rejected with a clear message instead of producing a misleading result. An empty input - an empty array, an empty object {} or an object holding only empty arrays - is rejected the same way instead of silently writing an empty file. Nothing is uploaded.

The practical advantage of JSONL: every line is valid JSON on its own. That is why the file can be streamed, appended to and processed line by line without loading everything into memory at once - and a single broken line does not make the whole document unreadable, as it would in one large JSON array.

No file-count or daily limits, no account, no paywall, no watermark. Only your device limits the size - up to 2 GB per run. Many online services limit free use to a few runs per day or require an account; here everything runs locally in your browser - with no daily quota and no sign-up.

Specifications

Specifications
Input formatsJSON
Auto-conversionXLSX, SQLite
Output formatJSONL
Batch processingNo
ProcessingLocally in your browser (JavaScript)
File uploadNone

In 3 steps

  1. Drop or pick your JSON file.
  2. The tool writes each entry as its own line.
  3. Download the JSONL file.

Limitations: Expects a JSON array at the root (or an object that wraps exactly one such array). Each entry is written as one compact JSON line, the order is preserved. A single object without an array is written as one record on one line. A scalar or an object holding several separate arrays is rejected with a clear message. An empty input - an empty array, an empty object {} or an object holding only empty arrays - is rejected the same way instead of producing an empty file. Nested structures and data types (numbers, booleans, nested objects/arrays) within an entry stay unchanged as compact JSON on the line.

FAQ

Is my file uploaded?

No. The conversion runs entirely locally in the browser - nothing is sent.

What is NDJSON?

NDJSON is another name for JSON Lines: each line holds exactly one JSON value.

What if my JSON is an object with an array inside?

That is recognised: the contained array is used and written line by line.

Is the order preserved?

Yes. The lines follow the order of the entries in the array.

Does the reverse work too?

Yes, with our "JSONL to JSON" tool.

Is JSON to JSONL free - are there any limits?

Yes. You can use JSON to JSONL as often as you like: no daily cap, no account, no paywall, no watermark. All selected files together may be at most 2 GB per run; on devices with little memory this bound is lower, because it follows your device's memory.

Related tools

JSONL to JSON · JSON to CSV · CSV to JSON · YAML to XML · XML to TOML · TOML to XML