Developer

Runs in your browser. No file uploads for processing.

Validate JSON Lines and Find Invalid Rows

Validate JSONL or NDJSON one line at a time, see exact error line numbers, and export valid records without reformatting their JSON.

Loading tool...

How to find a bad line in a JSONL file

  1. Open or paste JSON Lines

    Each physical line must hold a complete JSON value. Choose the object-only option if your import expects one JSON object per record.

  2. Check the bad line numbers

    Try the example: the second line has an id key but no value. Lines 1 and 3 are valid, and their 16-digit numbers are not rounded or rewritten.

  3. Fix the source or save valid lines

    Use the listed numbers to fix records at source. The optional export saves a separate file with only valid records in the same order.

Use cases

  • Find broken records in an event export without uploading private log data.
  • Check a line-delimited import before loading it into a system that expects JSON objects.

Limits and privacy

  • One UTF-8 file up to 2 MiB, 2,000,000 characters and 20,000 lines. Shows the first 20 errors and the total error count.
  • Strict JSON Lines does not allow blank records, comments, multi-line records, or a leading byte-order mark. A final line break is allowed.
  • Checks JSON syntax and optional object shape only, not a schema, duplicate keys, or numeric range. Valid-only output keeps the original record text but uses LF line endings.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

Which line in my newline-delimited JSON is invalid?

Validate the file to see exact physical line numbers and error types. Use JSON Structure Diff when you need to compare two complete JSON documents rather than line records.

Do I need an array around a JSONL file?

No. Each physical line is a complete JSON value, so a file can contain consecutive object lines or other JSON values without outer brackets or separating commas.

Are blank lines valid JSON Lines?

No. A blank physical record is not a JSON value. One final line break is fine and is not counted as a blank record.

Does valid-only export change large integer IDs?

No. The checker tests syntax but exports the original text of passing lines. It does not stringify parsed objects or round their numbers.

Can I validate NDJSON without uploading my logs?

Yes. Parsing and valid-only export run in your browser. This is syntax validation, not a check that your logs conform to an application schema.

Related tools