JSON Sorter & Deduper

Sort object keys recursively, sort array items alphabetically or numerically, and dedupe array items — then pretty-print the result with stats. Runs entirely in your browser.

Input JSON

Options

How it works

About JSON Sorter & Deduper

Unsorted JSON is hard to eyeball: equivalent documents differ, review diffs grow noisy, and duplicate entries inflate payloads. A deterministic sort turns a hand-edited blob into a canonical form you can diff, cache, or commit with confidence.

Use it to normalize config files before committing, to shrink response payloads by removing duplicate items, or to prepare stable fixtures for tests and examples. Sorting and deduplication happen locally, so private schemas and payloads never leave your browser.