JSON Lines to JSON
Convert JSON Lines (JSONL or NDJSON) into a standard JSON array. Blank lines are skipped and any bad line is reported by its number. Free, fast and private.
Runs in your browser. Nothing is uploaded.
About JSON Lines to JSON
JSON Lines stores one JSON value per line. It is the format of log exports, BigQuery and Elasticsearch dumps, and machine learning datasets. This tool parses each line and wraps the results in a single JSON array that ordinary JSON tools can open.
Blank lines are ignored. If a line is not valid JSON, you get its line number and the parser's message, so you can fix a truncated or corrupted record quickly.
How to use JSON Lines to JSON
- Type or paste your text into the input box. Press Sample to see an example.
- The result appears instantly as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Are JSONL and NDJSON the same?
Practically, yes. Both mean newline-delimited JSON: one complete JSON value per line.
Can it handle big files?
Files of tens of megabytes work fine in a modern browser.
Is JSON Lines to JSON free and private?
Yes. JSON Lines to JSON is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.