What is NDJSON?
NDJSON (Newline-Delimited JSON) is a streaming-friendly format where each line is a complete, self-contained JSON value — almost always an object. Unlike a JSON array, you can append a new line without rewriting the whole file, which makes NDJSON ideal for logs, telemetry, and append-only event streams.
How does NDJSON compare to JSON Lines and JSON arrays?
NDJSON and JSON Lines (JSONL) are essentially the same format — one JSON value per line, separated by \n. The names are interchangeable in practice. A JSON array, by contrast, requires the whole document to be valid JSON, which means you must rewrite the closing ] every time you append. NDJSON is append-friendly; JSON arrays are random-access friendly.
When should I use NDJSON?
Use NDJSON for: log files (structured logging in Pino, Bunyan, slog, zap), event streams over HTTP (SSE-style), database import/export (BigQuery, MongoDB mongoexport, ClickHouse), and ML training datasets where you read records one at a time. Use a JSON array for small, finite, complete datasets you want to load in one shot.
How does the viewer handle errors?
Each line is parsed independently. Lines that don’t parse are listed in the error count at the top, but valid lines still render normally. This matters for real-world log files, where a single corrupted entry shouldn’t hide the rest of the data.
Why a table and a card view?
Table view is best for scanning many records: every column lines up, you can sort and filter, and outliers jump out visually. Card view is best for inspecting individual records — especially when objects have nested fields or wildly different shapes that don’t fit a tabular layout.
Is there a row limit?
There is no hard limit, but rendering tens of thousands of rows in the DOM can slow the browser. For very large NDJSON files, filter or paginate before pasting, or use a streaming tool. Practical rendering tops out around 5–10k rows on most laptops.
Can I copy or export?
Yes — the table mirrors a JSON array of objects, so you can pair this tool with our JSON to Table converter for copy-as-TSV or with the JSON Formatter to pretty-print a single record. The card view shows the raw line for easy clipboard copy.
Is my NDJSON sent to a server?
No. Parsing, sorting, filtering — all runs in JavaScript inside your browser. Open DevTools → Network and confirm. Log files often contain user IDs, IPs, or proprietary event data, so privacy matters.