.jsonl

What is a .jsonl file?

JSONL is the JSON Lines format — one JSON object per line, identical to NDJSON under a different extension.

Safe format
Type Data
By Open standard (community convention)
MIME application/jsonl

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

JSON Lines is the same format as NDJSON — one JSON object per line, newline-separated. The .jsonl extension is slightly more common in data science and machine learning workflows, while .ndjson is more common in streaming and logging contexts. The content is identical.

The format is popular in ML/AI pipelines because training datasets are naturally line-oriented. Each line is one training example — an input-output pair, an annotated text sample, a feature vector. Tools like Hugging Face datasets, OpenAI's fine-tuning API, and many data processing frameworks expect JSONL input.

Processing JSONL is trivially parallelisable: split the file by lines, distribute to workers, process independently. No parsing context is shared between lines. This makes JSONL ideal for MapReduce-style processing, distributed systems, and any workflow where data arrives incrementally.

Technical details
Full Name
JSON Lines
MIME Type
application/jsonl
Developer
Open standard (community convention)
Magic Bytes
N/A
Safety
.jsonl is a known, safe format. Text data file. No executable content.
What opens it
Any text editor
FREE Windows / Mac / Linux
jq (command-line)
FREE Windows / Mac / Linux
VS Code
FREE Windows / Mac / Linux
FAQ
Is JSONL the same as NDJSON?
Yes. The format is identical — one JSON value per line. The .jsonl extension is more common in data science; .ndjson is more common in streaming and logging.
Why does OpenAI use JSONL for fine-tuning?
JSONL's line-oriented structure maps naturally to training examples (one per line), processes efficiently without loading entire datasets into memory, and is trivially parallelisable for distributed training.
Related formats