What it does
NDJSON (also called JSON Lines, .jsonl) stores one JSON value per line, which makes it ideal for logs, exports and streaming. This tool checks every line independently, so one bad record never hides the others, and it can convert, format, filter and summarise the records.
Operations
- Validate each line lists every line as
Line 1 ✓orLine 3 ✗followed by the exact reason, the column and the text around it. Blank lines are skipped, not treated as errors. Turn on fail-fast to stop at the first problem instead. - NDJSON → JSON array and JSON array → NDJSON convert in either direction. Records are copied through token for token, so large numbers, key order and string escapes are never changed.
- Format each record writes compact (valid NDJSON) or pretty-printed records, optionally with sorted keys. Duplicate keys are reported.
- Filter / select records keeps records that match an expression and can reduce each one to chosen fields.
- Count & analyse reports record counts, value types, line lengths, the distinct record shapes and how consistently each field appears, which is the quickest way to spot mixed record shapes.
Filter and select syntax
Filters use the same engine as the JSONPath Tester. Write an expression with @ standing for the record: @.level == 'error', @.status >= 500 && @.user.plan != 'free', match(@.path, '^/api/'), or just @.error to keep records that have an error field. A query that starts with $, such as $.user.email, keeps records where it finds a value. “Text contains” is a plain search of the raw line. Criteria combine with AND, and Invert flips the result. “Select fields” takes paths like id, user.name, items[0].sku; the output keys are the paths you typed. Note that selected fields are re-written by the browser, so integers beyond 9,007,199,254,740,991 lose precision there; a plain filter keeps each matching line exactly as it was.
Exports
After a run you can download the full result, only the valid records, or only the invalid lines exactly as they appeared (so you can repair them and run again). With JSON Repair you can fix a damaged line, and with JSON Formatter, JSON Validator, JSONPath Tester and the others you can open the records as a JSON array using Send records to.
Large files
Files are read from your disk in 4 MB pieces by a background Web Worker and processed one line at a time, so memory use stays small and the page stays responsive. Results are kept in browser-managed storage with only a short preview shown on screen; Copy and Download use the full result. Files up to 2 GB are accepted, a single line may be up to 32 million characters, and pasted text is limited to 64 million characters. If the worker stops responding for 15 seconds it is cancelled, and you can press Cancel at any time. Line breaks can be LF, CRLF or CR, and UTF-8 and UTF-16 files are both read correctly.
Privacy
Everything runs in your browser. Nothing you paste or open is uploaded, and no copy of it is kept after you leave the page.