Convert JSON to JSON Lines Online Free

Drag & drop your .json file here, or click to browse

Converts to JSON Lines on secure servers · first daily conversion free · no signup

Your first conversion each day is free. A $2.99 one-time Day Pass unlocks 24 hours and ends by itself.

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.

First daily conversion free No signup required Encrypted transfer · Async jobs kept up to 24h Queued when needed Updated May 2026

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

Developers

  • Convert JSON config files to JSON Lines for compatibility with different tools or frameworks
  • Transform JSON API responses to JSON Lines for debugging, logging, or documentation
Validate the converted JSON Lines output with a linter to catch any structural issues from the conversion
Watch for data type coercion (e.g., numbers becoming strings) when converting between JSON and JSON Lines

Data Analysts

  • Convert JSON exports to JSON Lines for importing into spreadsheet software, databases, or BI tools
  • Transform JSON datasets to JSON Lines for sharing with teammates who use different analysis tools
Check that column delimiters and quote escaping are handled correctly in the converted JSON Lines file
Preview the first few rows of the JSON Lines output to verify headers and data alignment

System Administrators

  • Convert JSON configuration to JSON Lines when migrating between infrastructure tools or platforms
  • Transform JSON log exports to JSON Lines for ingesting into monitoring or analysis systems
Back up the original JSON config before converting, especially for production systems
Test the converted JSON Lines in a staging environment before deploying to production

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.

Automate this conversion

Convert JSON to JSON Lines via API

Integrate this conversion into your pipeline with 3 lines of code. Free tier: 25 conversions/month.

curl -X POST https://changethisfile.com/v1/convert \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@input.json" \
  -F "target=jsonl" \
  -o output.jsonl --fail
Replace YOUR_API_KEY with your free key — no credit card needed.
Get a free API key

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.

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