Format Code Now
/
Hash & generateSHA-512/224 Hash Generator Next: SHAKE-128 Hash Generator ›

SHA-512/224 Hash Generator

HG-25

Paste text to get its SHA-512/224 hash, 56 hex characters long. The Output size menu also gives SHA-512/256, and the text is hashed as UTF-8.

Runs in your browser. Nothing is uploaded.

Text (hashed as UTF-8)

SHA-512/224 hash

How to use it

  1. Type or paste your text into the input box. Sample loads the quick brown fox sentence.
  2. Choose SHA-512/224 or SHA-512/256 in the Output size menu.
  3. Press Hash. The value appears in the output as lowercase hex, UPPERCASE hex or Base64, whichever you pick.
  4. Tick Ignore one trailing line break if your text ends in a newline you do not want hashed, then copy the result.

What SHA-512/224 is

SHA-512/t is a pair of functions in FIPS 180-4 that run the SHA-512 algorithm from their own starting values and keep only the first t bits of the result, so t is 224 or 256 here. Because the starting values differ from SHA-512's, the output is not simply a cut-down SHA-512 of the same text. On 64-bit processors SHA-512 rounds are often quicker than SHA-256 ones, which is the usual reason to choose these.

How this page checks itself

Web Crypto does not provide either function, so this page has its own SHA-512 written out and derives the starting values by the standard's own method, which is a SHA-512 run over the text SHA-512/224 with a modified start. The results are checked against the FIPS 180-4 values for abc and the empty string, and against another implementation on inputs around the block size. Passwords need a slow, salted function, not this.

Exactly what gets hashed

The text is encoded as UTF-8 and hashed as typed. A space or line break at the end changes the result, which is why the trailing line break option exists, and a lone surrogate half is replaced with U+FFFD first. This page hashes text only, so a file saved with different line endings would give a different value than the same words typed here.

Questions people ask

How do I generate a SHA-512/224 hash?

Type or paste your text into the input box, keep Output size on SHA-512/224 and press Hash. The value appears in the output, as lowercase hex by default. Switch to SHA-512/256 in the menu if you need that one.

What is the SHA-512/224 hash of abc?

It is 4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa. Type abc into the box and press Hash to see it. This is the example value from the standard, and this page matches it.

Is SHA-512/224 just SHA-512 cut to 224 bits?

No. It starts from different initial values, so its output is not the first 56 characters of the SHA-512 hash of the same text. The two functions share the round steps and block size, but the starting values make the results unrelated.

How is SHA-512/224 different from SHA-224?

SHA-224 is a SHA-256 variant with 32-bit words, while SHA-512/224 is a SHA-512 variant with 64-bit words. Both give 28 bytes, and the same text gives different values in each, so one cannot replace the other.

Does this page also do SHA-512/256?

Yes. Choose SHA-512/256 in the Output size menu to get 32 bytes, which is 64 hex characters. It uses the same code and its own starting values, and it is checked against the FIPS 180-4 value for abc.

About this tool

SHA-512/224 runs the SHA-512 algorithm from its own starting values and keeps the first 28 bytes (56 hex characters); the select also gives SHA-512/256. Both are in FIPS 180-4. The starting values are not SHA-512's and the result is not a shortened SHA-512, so the same text gives different values. Web Crypto does not offer them, so this page carries its own implementation and checks it against the FIPS 180-4 examples and against another implementation. It is a fast general-purpose hash, so do not use it alone to store passwords: that needs a slow, salted function such as bcrypt, scrypt or Argon2, which this tool is not. The text is hashed exactly as typed, as UTF-8 (a lone surrogate half becomes U+FFFD first), so a trailing line break or a space changes the result; "Ignore one trailing line break" removes one. It hashes text, not files: a file saved with different line endings would give a different hash than the same words typed here.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.