JSON Lines Converter
Convert JSON arrays to JSON Lines (JSONL/NDJSON) and back with line-specific errors
Use the interactive tool with JavaScript enabled.
Convert JSON arrays to JSON Lines (JSONL/NDJSON) and back with line-specific errors
Use the interactive tool with JavaScript enabled.
{"id":1}
{"id":2}[
{
"id": 1
},
{
"id": 2
}
]The importer skips blank lines and removes a leading byte-order mark as conveniences. It is not a strict JSON Lines conformance checker. Numbers use JavaScript JSON precision; files must fit in browser memory.
Use JSON Lines to prepare newline-delimited records for logs, data exports, and processing pipelines. Each JSON array item becomes a compact JSON value on its own line. The reverse conversion skips blank lines and reports the source line when JSON is invalid. Conversion uses the browser’s native JSON parser, including JavaScript number precision limits.
Tool processing runs in your browser. Privacy policy and cookie preferences.