Merge JSONL files

Join JSONL files into one, end to end, in the order you add them.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop JSONL files on the dialor turn it to pick what to do

Join JSONL files into one.Two or more files become a single JSONL file, in the order you add them.

  1. What the tool does

    You add two or more JSONL files, and the tool joins them end to end into one file. The files keep the order in which you add them, so the records of the first file come first, then those of the second, and so on.

    Every record is kept, one per line, as it was written.

  2. What changes

    Blank lines are dropped, so the joined file has no gaps between records or between files. Line endings in the output are LF.

    The records themselves are not edited. Nothing is added between files and nothing is reordered.

  3. When the join stops

    Every line must be JSON. If a line is not, the join stops with input_corrupted.

    For other JSONL tasks, see every JSONL conversion.

Questions.What people ask about merging JSONL files.

01OF 04

In the order you add them. The records of the first file come first, then those of the second, and so on.

No. Each record stays on its own line as it was written. Only blank lines are dropped, and line endings become LF.

One of the lines is not JSON. The join stops when it finds such a line.

The JSONL format covers the jsonl and ndjson extensions, so files with either extension count as JSONL.