JSON Lines Viewer
Open JSON Lines (NDJSON) files as a table, filter records, find invalid lines, and convert to a JSON array.
Runs in your browser. Nothing is uploaded.
How to use the JSON Lines Viewer
- Paste JSON Lines into the box, open a .jsonl or .ndjson file, or press Load example.
- See the number of records and fields, and a list of any invalid lines with their line and column.
- Browse the records as a Table or as formatted Records.
- Type in the filter box to show only records containing certain words, such as
error 500. - Download or copy everything as a standard JSON array.
Reading JSON Lines without a terminal
JSON Lines files are great for machines and awkward for people. A log export or dataset can contain
thousands of records, each a long single-line JSON object, and most text editors show them as one
unbroken wall of braces. Command-line tools like jq help, but not everyone has them, and they don’t
give you an overview at a glance.
This viewer parses every line and presents the result in two ways. The Table view lines records up in columns, one per field, so you can scan values such as status codes or timestamps. The Records view shows each record pretty-printed with its original line number, which is better for nested data.
Find what matters
The filter box narrows the records to those containing every word you type, matched anywhere in the
record. Typing error 500 in a log file, for example, keeps only failed requests. Matching is
case-insensitive and runs as you type.
Problems are pinpointed, not fatal
Real JSON Lines files often contain a few broken lines: a truncated final record, a log line written by a different tool, or a stray comment. Instead of failing on the first problem, the viewer skips invalid lines and lists each one with its line, column and a plain explanation. Click an entry to jump to it in the editor. Blank lines are allowed and counted separately.
Convert between formats
Many tools expect a regular JSON array rather than JSON Lines. Download as JSON array gives you a standard array of all valid records, formatted and ready for a spreadsheet import, an API request or the JSON Formatter Tree tab. Going the other way, paste a JSON array and press Convert a JSON array to JSON Lines to produce one record per line.
Everything runs in your browser, so log files with personal or internal data stay on your device.
Frequently asked questions
What is JSON Lines (NDJSON)?
JSON Lines, also called newline-delimited JSON or NDJSON, stores one complete JSON value per line. It's popular for logs, data exports, streaming APIs and machine-learning datasets because files can be appended to and processed line by line.
How is JSON Lines different from a JSON array?
A JSON array wraps all records in one [ ... ] value, so the whole file must be read before it can be parsed. JSON Lines has no outer brackets and no commas between records, so each line can be read on its own. This tool converts between the two.
What happens to invalid lines?
They are skipped, and listed with their line number, column and the reason, so you can fix them. Valid lines still appear in the table, so one bad record doesn't stop you working with the rest.
Can I open a normal JSON file here?
This viewer is for JSON Lines, one value per line. If you paste a single JSON document, it says so and offers to open it in the JSON Viewer, Formatter & Validator, which shows the whole document with a tree and a graph. A JSON array can also be converted to JSON Lines here.
How large a file can I open?
Files up to 50 MB can be opened. All records are parsed, and the table shows the first 500 matching rows to keep the page fast. Downloading as a JSON array includes every valid record.
Is my data uploaded?
No. The file is read and parsed in your browser and never sent anywhere.
Tutorials
How to find failed requests in a JSON Lines log
Open a JSONL or NDJSON log file, filter it to errors, and export just the records you need, without a terminal.