jsonlkit.com
JSONL (JSON Lines) utilities, in the browser
Say hi →

JSONL Sorter

updated 11 May 2026

100% client-side. No upload.

Sort

Drop a .jsonl file here, or

JSONL Sorter

Sort a JSONL file by a chosen key path with stable ordering. Handles numeric, lexical, and ISO-date comparisons; lets you choose where missing values go. The browser equivalent of jq -s 'sort_by(.id)' without the pipe-friendly footguns. 100% client-side.

Comparison types

Auto-detect

Looks at the first non-missing value at the key path and picks the right comparator — numeric if it parses as a number, ISO-date if it matches a common date pattern, otherwise lexical. Good default.

Numeric

Coerces values with parseFloat. Non-numeric values are pushed to the missing-values bucket. Use this for IDs, prices, durations.

Lexical

Standard string comparison using localeCompare with numeric-aware option, so "file2" sorts before "file10".

Date / ISO timestamp

Parses with the browser's Date constructor. ISO 8601 timestamps (2026-05-11T12:34:56Z) sort correctly; ambiguous formats (US vs EU) may not — convert to ISO first if so.

Stability

The sort is stable: records that compare equal on the key keep their original input order. If you need a secondary sort key, run the sorter twice — sort by the less-important key first, then by the more-important key.

Tips & common pitfalls

Related tools