NDJSON ↔ JSON
Convert line-delimited logs to a JSON array, or split an array into records.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Turn NDJSON records into a JSON array, or split a JSON array into one record per line for an import workflow. Choose the direction before adding input. Optionally require every record to be a JSON object. Blank lines in NDJSON are ignored; invalid JSON and duplicate keys are rejected. Number literals are preserved.
How to use this tool
- Choose NDJSON → JSON or JSON → NDJSON.
- Paste records or choose a local file. For JSON → NDJSON, provide one JSON array.
- For object-record imports, select the object-only check. Check the record count and output, then copy or download the converted file.
Supported inputs and limits
Up to 10,000 records. Blank NDJSON lines are ignored; invalid JSON and duplicate keys are rejected. Number literals are preserved.
Processing stays in your browser. Paste up to 1 MiB or choose one file up to 10 MiB. The whole input is processed in memory, so this is not a large-file streaming converter.
Worked example
Example input
{"n":9007199254740993}
{"n":2}Example options
{}Example output
[
{
"n": 9007199254740993
},
{
"n": 2
}
]When something does not work
Check the reported line and column for invalid NDJSON, or make sure JSON → NDJSON receives a JSON array. Blank NDJSON lines are ignored; each nonblank line must be one complete JSON value.
Frequently asked questions
Are files uploaded?
No. File bytes and input are processed in this browser.
Can I convert a very large log file?
This browser tool reads the whole input into memory. It accepts one file up to 10 MiB and at most 10,000 records. Use a streaming program for larger logs.
Will every NDJSON file import into BigQuery?
No. Select the object-only check to reject scalar and array records. BigQuery table loading also requires a compatible table schema. Check the destination rules before importing.