Convert JSON to JSON Lines Online Free
Convert a JSON array into JSON Lines for streaming ingest into log pipelines, BigQuery, and ML training jobs.
By ChangeThisFile Team · Last updated: March 2026
ChangeThisFile converts JSON arrays to JSON Lines on a secure server. Upload your .json file and we emit one JSON object per line, ready for streaming ingest into BigQuery, ElasticSearch, or ML pipelines. Files are auto-deleted after conversion. Free, no signup.
Convert JSON to JSON Lines
Drop your JSON file here to convert it instantly
Drag & drop your .json file here, or click to browse
Convert to JSON Lines instantly
JSON vs JSON Lines: Format Comparison
Key differences between the two formats
| Feature | JSON | JSON Lines |
|---|---|---|
| Structure | Single top-level array of objects | One JSON object per line |
| Streaming | Loads whole document into memory | Process line-by-line as it streams |
| Memory profile | Linear with dataset size | Constant — one record at a time |
| Tooling | Frontends, REST APIs, jq | BigQuery loads, ElasticSearch bulk, log pipelines |
| File extension | .json | .jsonl, .ndjson |
| Best for | Bulk APIs and frontends | Streaming ingest and large datasets |
When to Convert
Common scenarios where this conversion is useful
Load JSON into BigQuery
BigQuery's bq load command prefers JSONL with NEWLINE_DELIMITED_JSON. Convert your JSON array once and load directly without writing custom parsing.
Bulk-index into ElasticSearch
ElasticSearch's _bulk endpoint requires NDJSON. Convert your JSON array and pipe directly into a bulk request to index thousands of documents.
Prepare ML training data
HuggingFace datasets, OpenAI fine-tuning, and most ML pipelines accept JSONL. Convert your training JSON once and feed directly into the training job.
Stream large datasets through jq
JSONL works better with jq's streaming filters than JSON arrays. Convert once and query with simple line-oriented filters.
Who Uses This Conversion
Tailored guidance for different workflows
For Data Engineers
- Load JSON into BigQuery as JSONL via bq load
- Bulk-index into ElasticSearch using the _bulk endpoint
- Convert API exports for streaming ingest pipelines
For ML Engineers
- Convert JSON training data to JSONL for HuggingFace, OpenAI, or PyTorch
- Stream large datasets through training loops without OOM risk
- Prepare data for fine-tuning jobs that expect NDJSON
How to Convert JSON to JSON Lines
-
1
Upload your JSON file
Drag and drop your JSON file onto the converter, or click browse. The file is uploaded over an encrypted connection.
-
2
Server-side conversion
The server converts your JSON to JSON Lines on our secure backend. This typically takes a few seconds.
-
3
Download the JSON Lines
Save your converted JSON Lines file. The server copy is automatically deleted after processing.
Frequently Asked Questions
A top-level JSON array containing objects: [ {...}, {...}, ... ]. Each object becomes one line in the JSONL output.
The output will be a single line containing that one object. JSONL with one record is still valid.
Nested arrays are preserved inside each line — they don't become separate JSONL records. Only the top-level array is split.
Yes — the JSONL output preserves the exact order of objects from the source JSON array.
Up to 50MB. For larger datasets, consider streaming JSON parsers like ijson rather than uploading the whole file.
Yes — use ChangeThisFile's JSONL to JSON converter for the reverse direction.
Yes — conversion runs on our backend over HTTPS. The file is auto-deleted after processing.
Each top-level array entry is preserved exactly as a single JSON object per line, including all nesting.
Yes. NDJSON and JSONL are interchangeable names for the same format. Save the output with either extension.
Related Conversions
Related Tools
Free tools to edit, optimize, and manage your files.
Need to convert programmatically?
Use the ChangeThisFile API to convert JSON to JSON Lines in your app. No rate limits, up to 500MB files, simple REST endpoint.
Ready to convert your file?
Convert JSON to JSON Lines instantly — free, no signup required.
Start Converting