What are JSONL and NDJSON?
JSON Lines (JSONL) and newline-delimited JSON (NDJSON) store one complete JSON value per line. Applications usually write an object for each log entry, event, or exported row. Arrays, strings, numbers, booleans, and null are also valid. Each line stands on its own, so programs can read or append records as they arrive. That makes the format common in structured logs, event streams, database exports, and machine learning datasets.
How to open and search a JSONL file
Open or drop a local .jsonl, .ndjson, .log, or text file, or paste the contents into the source box. The viewer checks each line as soon as the input is ready. Select a record to see its formatted JSON, or copy its original text. Search looks for text in field names and values as written in the source, ignoring case. Line numbers stay tied to the original file when you search or change pages.
Files and pasted text are processed locally in your browser.
How to find and fix invalid NDJSON lines
Choose Errors only to see the failing lines together. Expand a line for the parser message and the original text. The line number takes you to the same place in your source editor, and valid records remain available while you troubleshoot.
Common causes include an incomplete record, an unquoted key, a trailing comma, or a single record split over several lines. Use UTF-8 text and one value per line. LF and Windows CRLF both work. Blank lines are reported as errors, and a final newline is allowed. Validation checks JSON syntax on each line. It does not require records to have the same fields or match a JSON Schema.
When to use the JSON Formatter
Use the JSON Formatter for a single JSON document, such as a pretty-printed API response or an array containing several objects. Use this viewer when each physical line is a separate record with no commas between lines and no surrounding array.