JSON Normalizer

Make JSON comparable. The normalizer sorts every object's keys, removes repeated array entries and pretty-prints the result, so two exports that only differ in ordering come out identical — ready for a clean diff, a stable cache key or a tidy commit. Drop many files to normalize them together.

Before and after

InputNormalized
{"b":1,"a":2}{"a":2,"b":1}
[{"x":1,"y":2},{"y":2,"x":1}][{"x":1,"y":2}]

When to use it

  1. Diff two API responses without key-order noise.
  2. Produce stable snapshots for tests.
  3. Clean duplicated entries from a JSON list.
  4. Canonicalize JSON before hashing.

How to Use

  1. Paste or drop JSON.
  2. Choose the options.
  3. Copy or download the normalized JSON.

Features

  1. Recursive key sort
  2. Deep-equality dedupe
  3. Optional array sort
  4. Pretty or minified
  5. Batch to ZIP
  6. No upload

FAQs

Why sort JSON keys?

Key order doesn't change JSON's meaning but creates noise in diffs.

How are duplicates found?

By deep equality — same content, regardless of key order.

Will it change my values?

No. Only key order and duplicate array entries change.

Should I sort arrays?

Only when order doesn't matter, which is why it's optional.

Is my JSON uploaded?

No.

Technical Details

The JSON is rebuilt recursively. Object keys are sorted by code point (as most canonical-JSON schemes do), or case-insensitively if you prefer. Arrays are deduplicated by deep equality: each item is turned into a canonical string with sorted keys, so objects with the same content in a different key order count as duplicates, and the first occurrence is kept. Optionally, arrays containing only plain values are sorted — numbers numerically, everything else as text. This is off by default because order often matters. The output can be pretty-printed or minified. Number and string values are never altered.

Data & CSV Tools

Data & CSV Tools

  • CSV \u21c4 YAML
  • XSD Viewer
  • CSV Column Extractor
  • CSV Delimiter Converter
  • CSV to SQL INSERT
  • CSV to Markdown Table
  • CSV to JSON
  • JSON to CSV