What is a JSONL viewer?
JSON Lines files are easy for programs to write and stream, but awkward for people to read: thousands of long lines with no structure. This viewer parses every line, lays the records out as a table with one column per key, and points out the exact lines that are not valid JSON. It also converts JSONL to a regular JSON array and back, which is handy when a tool expects one format and you have the other.
Where you will meet JSONL
Need the records in a spreadsheet? Use JSONL to CSV.
- LLM datasets and batch jobs: fine-tuning data, evals, and batch request/response files.
- Logs: structured application and audit logs written one event per line.
- Data exports: BigQuery, MongoDB, and Elasticsearch exports, and streaming APIs that send NDJSON.
How to use
- Open a
.jsonlor.ndjsonfile (or paste lines, or load the sample). - View JSONL shows every record as a table row, with the union of all keys as columns.
- Invalid lines are listed with their line number and the parser's error, so you can fix them at the source.
- JSONL → JSON turns the lines into one JSON array; JSON → JSONL does the reverse. Copy or download either result.
Examples
JSONL → JSON array
{"id": 1, "event": "signup"}
{"id": 2, "event": "login"}[
{ "id": 1, "event": "signup" },
{ "id": 2, "event": "login" }
]JSON array → JSONL
[{"a": 1}, {"b": [1, 2]}]{"a":1}
{"b":[1,2]}FAQ
What is a JSONL file?
A JSONL (JSON Lines) file stores one complete JSON value, usually an object, per line, separated by newlines. It is used for logs, data exports, streaming APIs, and machine-learning datasets (OpenAI fine-tuning and batch files are JSONL). NDJSON (newline-delimited JSON) is the same format under another name.
How do I open a JSONL file?
Open it here: each line becomes a table row and bad lines are flagged with their line numbers. Any text editor can also open it, since it is plain text, but long files are hard to read without a viewer. For regular .json files, see how to open a JSON file.
What is the difference between JSONL and JSON?
A JSON file holds one value, typically a big array, that must be parsed as a whole. JSONL holds many independent values, one per line, so it can be streamed, appended to, and processed line by line without loading everything into memory. See JSONL vs JSON for the full comparison.
Why is a line marked invalid?
Each line must be a complete, standalone JSON value. Common causes: a record split across multiple lines (pretty-printed JSON is not valid JSONL), a trailing comma, single quotes, or an unescaped newline inside a string. The error shows the exact line number.
Is there a size limit?
No hard limit: parsing is fast, and the table renders the first 500 records to keep the page responsive. Conversions always include every record.
Is my file uploaded?
No. The file is parsed and converted entirely in your browser. Nothing is uploaded.