Slicelytics monogram

NDJSON & JSONL Diff

Compare two newline-delimited JSON files line by line, and each line field by field: request logs, eval results, test outputs. Large and compressed files stream in, and nothing is uploaded.

  • Nothing is uploaded
  • Free, no sign-up
  • Large and compressed files
ts
level
method
path
status
duration_ms
user_id
retry_after_s
chevron_right
error
10 items
10 items

Here you will see the semantic difference between your datasets.
Use the filtering options above to easily understand and compare your data.

The demo compares a request log with the same requests replayed against a fixed build. Open your own two files with the buttons above, or drop each onto its side. For more room, open the full app, which opens with the files you opened here.

How to Compare Two NDJSON Files

  1. Open the baseline with the first button and the new run with the second. Files ending in .gz or .zst are decompressed as they are read.
  2. Line 1 is compared with line 1, line 2 with line 2, and so on. The diff shows the lines that differ, and in each, only the fields that changed.
  3. Hide fields that always differ, such as ts or duration_ms, by unticking them in Filters, and the real changes stand out.

Why Not a Text Diff?

diff and Git see an NDJSON line as one long string: a single changed field marks the whole line, and you're left to spot the difference in a few hundred characters of JSON. Slicelytics parses each line and compares the values, so it reports that the fourth line's status went from 504 to 201 and its error object was removed. Key order within a line doesn't count.

What People Compare

  • Eval and benchmark runs: the same tasks scored by two model or prompt versions. See comparing benchmark and eval runs.
  • Replayed traffic: the same requests against two builds, as in the demo.
  • Pipeline outputs: a job's NDJSON output before and after a change, to check it altered only what it should.
  • Load tests: per-request output of tools such as k6.

Logs Stay on Your Machine

Both files are read and compared in your browser and never uploaded, so production logs with user data can be compared without a compliance review. Need to look at a single log first? Use the NDJSON / JSONL Viewer.

Common Questions

How are the lines of the two files matched?

By position: the first line with the first, the second with the second. When the files list the same items in a different order, sort them by the same key first, e.g. with jq -c or sort.

Can I ignore fields such as timestamps?

Yes. Untick them in Filters, or type the names of only the fields you want to compare; the diff then leaves the others out.

Can I compare two large or compressed logs?

Yes. Both files stream into your browser a batch at a time, decompressed on the way if they are .gz or .zst. The diff covers the lines loaded, and Load more brings in the next batch of both.

Are my files uploaded?

No. Both are read and compared in your browser, and never sent to a server.

More Free Tools

Guides