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

Quick Answer

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.

Free No signup required Encrypted transfer · Auto-deleted Under 2 minutes Updated May 2026

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

FeatureJSONJSON Lines
StructureSingle top-level array of objectsOne JSON object per line
StreamingLoads whole document into memoryProcess line-by-line as it streams
Memory profileLinear with dataset sizeConstant — one record at a time
ToolingFrontends, REST APIs, jqBigQuery loads, ElasticSearch bulk, log pipelines
File extension.json.jsonl, .ndjson
Best forBulk APIs and frontendsStreaming 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
Validate the JSON is a top-level array before converting
Keep both formats around if upstream tools require JSON arrays

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
Check the line count matches the source array length after conversion
Use a small sample to validate the format before running large training jobs

How to Convert JSON to JSON Lines

  1. 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. 2

    Server-side conversion

    The server converts your JSON to JSON Lines on our secure backend. This typically takes a few seconds.

  3. 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.

View API Docs
Read our guides on file formats and conversion

Ready to convert your file?

Convert JSON to JSON Lines instantly — free, no signup required.

Start Converting