Convert NDJSON to JSON array (and back)
Convert NDJSON (JSON Lines) into a JSON array and back, right in your browser.
🔒 100% client-side — no data sent
Convert NDJSON (JSON lines) into a valid JSON array, or turn a JSON array into line-by-line NDJSON. The conversion is bidirectional and runs 100% in your browser to keep your data private. Handy for logs, exports and data streams.
What is it for?
- ▸ Turn an NDJSON log export into a usable JSON array
- ▸ Prepare data for an API that expects a JSON array
- ▸ Convert a JSON array into JSON lines for stream processing
- ▸ Clean up and reformat NoSQL or Elasticsearch exports
FAQ
What is the difference between NDJSON and JSON?
NDJSON (Newline Delimited JSON) puts one JSON object per line, without wrapping brackets or commas, which makes streaming easier. Standard JSON groups those objects into a single array wrapped in brackets.
How do I convert NDJSON to JSON?
Paste your NDJSON content and the tool gathers each line into a valid JSON array. You can also do the reverse by pasting a JSON array to get NDJSON back.
Does the conversion work with large log files?
Yes, since everything runs locally in your browser, you can process large files with no upload limits or data leaks. Performance mainly depends on your device's memory.