Format Code Now
/

SHA-224 Hash Generator

HG-10

Paste text to get its SHA-224 hash, 56 hex characters long. The hash is computed in your browser as you type, and the text is read as UTF-8.

Runs in your browser. Nothing is uploaded.

Text (hashed as UTF-8)

SHA-224 hash

How to use it

  1. Type or paste your text into the input box. Sample loads the quick brown fox sentence.
  2. The SHA-224 hash appears as you type.
  3. Choose lowercase hex, UPPERCASE hex or Base64 for the output.
  4. Tick Ignore one trailing line break if your text ends with a newline you do not want hashed.
  5. Copy the result, or download it as a .txt file.

What SHA-224 is

SHA-224 belongs to the SHA-2 family in FIPS 180-4. It runs the same steps as SHA-256 but starts from different initial values and keeps only the first 28 bytes of the result, so the output is 56 hex characters. Because the starting values differ, a SHA-224 hash is not simply a SHA-256 hash cut short. Browsers do not provide SHA-224 through Web Crypto, so this page carries its own implementation and checks it against the FIPS 180-4 examples.

When you would use it

You usually meet SHA-224 because a specification, a signature scheme or an old system asks for exactly that digest length. If you are free to choose, SHA-256 is the common default. SHA-224 is a fast hash, so it is the wrong tool for storing passwords on its own. That job needs a slow, salted function such as bcrypt, scrypt or Argon2, which this page does not do.

Exactly what gets hashed

The text in the box is encoded as UTF-8 and hashed as typed. A space or a line break at the end changes the result, which is why the trailing line break option exists. A lone surrogate half, which is not valid text, is replaced with U+FFFD before hashing. This is a text hasher, so it cannot hash a binary file; line endings or encodings saved differently in a file would give a different hash than the same words typed here.

Questions people ask

How do I generate a SHA-224 hash online?

Type or paste your text into the input box and the SHA-224 hash appears straight away. Pick lowercase hex, uppercase hex or Base64 for the format, then copy it or download it as a .txt file. It is computed in your browser.

How long is a SHA-224 hash?

A SHA-224 hash is 224 bits, which is 28 bytes. Written in hex that is 56 characters, and in Base64 it is 40 characters including two padding signs. The length does not depend on the size of the text you hash.

What is the SHA-224 hash of an empty string?

It is d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f in hex. Leave the box empty and this page returns that value, which is the standard check for an implementation that handles empty input.

Is SHA-224 the same as SHA-256 truncated?

No. SHA-224 uses its own starting values, so its output is not the first 56 characters of a SHA-256 hash of the same text. Both share the same round function, which is why the code is almost identical.

Is SHA-224 secure?

There is no practical collision attack on SHA-224, and it is part of the SHA-2 family approved in FIPS 180-4. Its shorter output gives less security margin than SHA-256 against collisions. For password storage, neither is suitable alone because they are fast.

Why does my SHA-224 differ from another tool?

Usually the input bytes differ: a trailing newline, a different text encoding, or Windows line endings. This page hashes UTF-8 exactly as typed. Try the Ignore one trailing line break option, and make sure the other tool also hashes UTF-8 text.

About this tool

SHA-224 is the SHA-256 algorithm with different starting values and the result cut to 28 bytes (56 hex characters). Your browser's built-in Web Crypto does not offer it, so it is written out in this page's own code and checked against the FIPS 180-4 examples. 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.