JSONL Validator & Viewer
Validate JSON Lines files and find the exact broken line.
JSON Lines (JSONL, also called NDJSON) stores one JSON value per line. It is the standard format for fine-tuning datasets, batch inference requests, evaluation sets and log streams, and a single malformed line is enough for an upload to be rejected.
This validator parses every line and reports the number of the first line that fails. The Table view shows your records as rows, and you can convert the file to a regular JSON array or to CSV for review in a spreadsheet.
How to use it
- Paste JSONL or drop a .jsonl file onto the editor.
- Fix the line reported in the error banner, if any.
- Open the Table view to scan the records, or convert to JSON or CSV.
Questions
What is the difference between JSON and JSONL?
A JSON file holds one value, typically an array. A JSONL file holds many values, one per line, with no surrounding brackets and no commas between lines, so it can be streamed and appended to.
Can I convert a JSON array to JSONL?
Yes. Paste the array with the format set to JSON and choose JSONL in the Convert to menu. Each element is written on its own line.
Does Format pretty print each line?
No. JSONL requires each record to stay on one line, so Format re-serialises every record compactly.
All tools
- JSON Formatter
- JSON Validator
- JSON Minifier
- JSON Repair
- JSON Diff
- JSON Schema Validator
- JSON to YAML
- YAML to JSON
- JSON to CSV
- CSV to JSON
- JSON to XML
- XML to JSON
- YAML Formatter
- XML Formatter
- JSONL Validator
- JSON to TOON
- LLM Token Counter
- LLM Token Optimizer
- JSON to TypeScript
- JSON Schema Generator
- LLM Tool Schema Generator