Convert between JSONL (JSON Lines) and JSON arrays. Auto-detects direction.
Free online JSONL (JSON Lines) converter. Paste a JSON array to get JSONL format (one JSON object per line), or paste JSONL to get a JSON array. Auto-detects the direction based on input format. Each line is individually validated. Shows line count and size statistics. Perfect for working with LLM training data, log files, machine learning datasets, and streaming APIs. Runs entirely in your browser.
Keywords: jsonl converter, json lines converter, jsonl to json, json to jsonl, json lines format, jsonl validator, ndjson converter, newline delimited json, jsonl online, json array to jsonl, llm training data format, jsonl to json array, json lines to json
Tags: json, jsonl, json-lines, converter, data, llm, dataset
Choose the conversion direction: JSON Array to JSONL or JSONL to JSON Array.
Paste your input into the input area on the left.
Click Convert or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to convert.
Copy the output or download it as a .jsonl or .json file.
Converts JSON arrays to JSONL (JSON Lines) format: one JSON object per line.
Converts JSONL back to a JSON array.
Validates each line in JSONL mode — reports the first invalid line with an error message.
Handles large datasets efficiently: each line is parsed independently.
Works entirely in your browser — data never leaves your device.
Keyboard shortcut ⌘↵ for instant conversion.