JSON canonicalization

Sort JSON object keys according to deterministic rules and output normalized text, preserving array order and showing differences.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

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.

  1. Enter JSON

    Paste or edit JSON; the first time it opens, a runnable example of 11DZ is loaded.

  2. Canonicalize

    Check key order, number handling, and Unicode processing, and view the differences between the input and result.

  3. 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.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback