JSON canonicalization
Sort JSON object keys according to deterministic rules and output normalized text, preserving array order and showing differences.
How to use JSON to normalize
JSON canonicalization only processes input in the current browser; it does not upload, connect to the network, or write to persistent storage.
Enter JSON
Paste or edit JSON; the first time it opens, a runnable example of 11DZ is loaded.
Canonicalize
Check key order, number handling, and Unicode processing, and view the differences between the input and result.
Copy result
Copy or download the canonicalized JSON; before publishing, review it against the target protocol.
Limitations and Notes
- Does not support remote $ref, scripts, or circular objects; input depth, node count, and byte count are limited.
- Normalization changes only the representation; it does not determine field semantics or business equivalence for you.
- Array order is preserved; the result is not a guarantee of general-purpose formatting or data cleaning.
FAQ
Does it change the array order?
No; the tool performs deterministic sorting only on object keys.
Will the input be uploaded?
No, processing is completed in the current browser.
Why is the result different from ordinary JSON.stringify?
Canonicalization uses fixed key ordering and deterministic numeric representation, making signing and comparison easier.