Free · Runs in browser · No upload needed

JSONL Line Counter & Stats

Paste or upload a JSONL file to count valid lines, detect parse errors, and get detailed statistics — key frequency, average object size, nesting depth, and more.

Statistics

Statistics will appear here

How the JSONL Line Counter Works

This tool reads your JSONL content line-by-line entirely in the browser. For each non-empty line it attempts JSON.parse(). Valid lines are counted and their keys, value types, and nesting depth are recorded. Invalid lines are tallied separately with their error messages.

Statistics Explained

Use Cases

The line counter is useful before fine-tuning an LLM: a quick stats pass tells you how many training examples you have, whether all required fields are present on every line, and whether any lines are unexpectedly long or malformed. It is also handy for auditing log exports from systems like Elasticsearch or BigQuery before loading them into a data warehouse.