FormatWell

JSONL / NDJSON viewer, validator & converter

Validate JSON Lines (NDJSON) with per-line errors, minify, browse records, and convert to or from a JSON array.

Ready
Input

Valid JSONL will appear here.

Nothing validated yet.

About this JSONL tool

JSONL (JSON Lines, also called NDJSON — newline-delimited JSON) stores one JSON value per line, with no wrapping array and no commas between records. It is the common format for logs, streaming APIs, and data exports. Paste or upload JSONL to validate every line, and the tool reports the exact file line and column of the first problem in plain language — click an error to jump straight to it.

Minify canonicalizes each record onto its own line. You can also convert JSONL to a pretty-printed JSON array (choose 2 spaces, 4 spaces, or tabs), or convert a JSON array back into JSONL. The Tree tab shows every record as a collapsible node. Everything runs in your browser — nothing you paste is uploaded — and large files are parsed in a background worker so the interface stays responsive.

Common problems it catches include blank lines between records, trailing commas inside a record, and a JSON array or object accidentally split across multiple lines.

Frequently asked questions

What is the difference between JSON and JSONL?
A JSON document is one value (often an array of objects) that may span many lines. JSONL puts one complete JSON value on each line, with no enclosing array and no commas between lines — ideal for streaming and appending records.
Is JSONL the same as NDJSON?
Yes. JSONL (JSON Lines) and NDJSON (Newline-Delimited JSON) refer to the same format: one JSON value per line. Files use the .jsonl or .ndjson extension. This tool validates both, since they are identical in practice.
Is my JSONL data private and secure?
Yes. Every line is validated locally in your browser — nothing is uploaded, logged, or stored on a server. That makes it safe for sensitive log exports, event streams, and data dumps containing personal or confidential information. Validation uses the native JSON.parse, which reads data only and never executes code.
Are blank lines allowed in JSONL?
No. Each line must be exactly one JSON value. This validator flags blank lines between records as errors, while allowing a single trailing newline at the end of the file.
How do I find which line of a large JSONL file is invalid?
The validator checks every line and reports the exact file line and column of each problem in plain language. Click any error in the panel to jump straight to that line in the editor, where the offending row is highlighted — handy for multi-thousand-line log files.
Can I convert between JSONL and a JSON array?
Yes. Use “To JSON array” to wrap all records into a pretty-printed array, and “From JSON array” to turn a JSON array in the editor into JSONL (one record per line). Both run entirely in your browser.
What is the maximum JSONL file size I can validate?
Files up to about 10 MB are supported. Larger inputs (above ~100 KB) are parsed in a background Web Worker so the interface never freezes, even with tens of thousands of records.