NDJSON Formatter, Validator & Converter
DataFormat, validate and convert newline-delimited JSON (NDJSON / JSON Lines): per-line validation, pretty-print or minify, convert to a JSON array or CSV, and remove duplicate records
About NDJSON Formatter, Validator & Converter
Paste newline-delimited JSON, the format most log pipelines and streaming APIs actually use, and work with it in three modes. Format & validate checks each line independently and reports the exact line number the moment something breaks, pretty-prints or minifies the whole stream, and converts between NDJSON and a single JSON array. Deduplicate records removes repeated lines either by exact match of the whole record or by a key field you choose (such as an event id), keeping the first occurrence. Convert to CSV turns flat objects into a CSV file with a header row built from the union of keys across all lines. It is comfortable up to tens of megabytes in the browser; for multi-gigabyte logs, a command-line tool like jq is the better fit.
How to use NDJSON Formatter, Validator & Converter
- 1.Paste NDJSON log output (one JSON object per line) to validate that every line parses correctly and spot the exact line number of a malformed entry.
- 2.Format a minified NDJSON stream into pretty-printed, indented JSON per line for easier manual inspection.
- 3.Convert an NDJSON file into a single JSON array when you need to load it into a tool that expects standard JSON rather than line-delimited records.
- 4.Switch to Deduplicate records to drop repeated events from a replayed or retried stream, by full record or by an id field.
- 5.Use Convert to CSV to open a flat NDJSON export in a spreadsheet.