Canonicalize JSON per RFC 8785 (JCS) and generate SHA-256/SHA-384/SHA-512 hashes. All processing runs entirely in your browser.
Type or paste the JSON data you want to canonicalize into the text area.
The canonicalized JSON (RFC 8785) and SHA-256/SHA-384/SHA-512 hashes are displayed automatically.
Click the copy button next to the canonicalized result or hash values to copy them to your clipboard.
JSON Canonicalizer is an online tool that deterministically normalizes JSON data based on the JSON Canonicalization Scheme (JCS, RFC 8785). It sorts object keys, removes whitespace, and normalizes numbers to produce identical byte sequences from the same data. SHA-256/SHA-384/SHA-512 hashes of the canonicalized result are also computed simultaneously.
RFC 8785 defines the JSON Canonicalization Scheme (JCS), a standard for normalizing JSON data. It specifies rules for producing identical byte sequences from the same data, making it suitable for digital signatures and hash comparisons.
JSON.stringify() depends on insertion order for object keys and varies whitespace based on arguments. RFC 8785 sorts keys by UTF-16 code unit order, removes whitespace, and normalizes number representation to guarantee identical output.
Since canonical JSON hashes are used for tamper detection and digital signatures, only the cryptographically secure SHA-2 family is supported. MD5 and SHA-1 are vulnerable to collision attacks and are unsuitable for this use case.
No, all processing is done entirely in your browser. The Web Crypto API is used for local computation, so your input data is never sent to any server.