JSONL validator

A JSONL validator checks that every non-empty line is a complete JSON value on its own.

Features

  • Line numbersInvalid rows are listed by line.
  • Array outputValid input becomes a formatted JSON array.
  • Runs on your deviceYour data is processed in the browser and is never uploaded.

How to use the JSONL validator

  1. Paste or open a .jsonl file.
  2. Read the reported line numbers.
  3. Fix them and copy the array.

Where JSON Lines is used

Log pipelines, data exports and machine learning datasets use one record per line because files can be streamed and appended.

Read JSONL in Node.js

const records = text.split('\n').filter(Boolean).map((line) => JSON.parse(line));

Frequently asked questions

Is NDJSON the same thing?

In practice, yes.

Are blank lines allowed?

They are skipped here.

Can a record span two lines?

No.

Related tools