Neatbo.

NDJSON ↔ JSON

Convert line-delimited logs to a JSON array, or split an array into records.

Browser-local processingInputNDJSON / JSONOutputJSON / NDJSONUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run
Conversion direction

Checks record shape in either direction. It does not validate your destination schema.

JSON source
0 characters · 0 bytes
Preparing the tool…

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

  1. Choose NDJSON → JSON or JSON → NDJSON.
  2. Paste records or choose a local file. For JSON → NDJSON, provide one JSON array.
  3. 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.

Documentation & further reading

Related tools