FormatterHQ

SHA-224 Hash Generator

Compute SHA-224 digests — the 224-bit member of the SHA-2 family — for text or files, shown as 56 hexadecimal characters.

Loading tool…
Ready.

How to use the SHA-224 Hash Generator

  1. Type or paste text into the input box, or switch the source to File and choose a file — it is hashed locally, never uploaded.
  2. Read the main hash at the top — the table below shows the same input under every other common algorithm. Tick Uppercase hex if you need capitals.
  3. To verify a value, paste it into Compare with an expected hash — the tool reports a match, or which algorithm it matches instead. Copy any row with its Copy button.

SHA-224 hash generator

SHA-224 is part of the SHA-2 family standardised in FIPS 180-4. It uses the same compression function as SHA-256 but starts from different initial values and keeps only 224 bits of the result. This SHA-224 hash generator computes that digest for any text or file and prints it as 56 hex characters.

Example

Input:

The quick brown fox jumps over the lazy dog

SHA-224 hash:

730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525

Compare it with SHA-256 of the same sentence, d7a8fbb307d7809469ca9abc…. Because the initial values differ, SHA-224 is not simply the first 56 characters of SHA-256 — the two outputs are unrelated.

SHA-224 at a glance

PropertyValue
Digest size224 bits (28 bytes, 56 hex characters)
Internal state256 bits; 64 rounds on 32-bit words
Collision resistanceAbout 112 bits
StandardAdded to FIPS 180-2 in 2004 (Change Notice); now FIPS 180-4
StatusSecure

Because the tool lists SHA-256 in the same table as the SHA-224 result, you can see at a glance that the two digests share nothing, despite coming from the same compression function.

Why a 224-bit hash?

SHA-224 was introduced to match the 112-bit security level of three-key Triple DES and 2048-bit RSA, so that systems could use a hash whose strength matched their other algorithms without wasting bandwidth. Its collision resistance of about 2¹¹² operations is still far beyond practical attack.

A side benefit of truncation: because SHA-224 does not output its full internal state, it resists the length-extension attacks that affect SHA-256 and SHA-512 when they are misused as MACs. HMAC remains the right way to build a MAC, though.

When to use it

  • Protocols or smart-card profiles that specify SHA-224, such as some DSA and ECDSA configurations with 224-bit keys.
  • Interoperability testing against systems that emit SHA-224 digests.
  • Situations where a slightly shorter digest than SHA-256 is useful but SHA-2 compliance is required.

For most new work, SHA-256 is the more common and better-supported choice; on 64-bit machines, SHA-512/224 gives the same output length with SHA-512’s speed. Do not use any fast hash for passwords — use bcrypt or Argon2id instead.

In code: Python hashlib.sha224(data).hexdigest(), OpenSSL openssl dgst -sha224 file, or sha224sum file on Linux. Hashing here runs locally in your browser.

Verifying a file against a SHA-224 value

SHA-224 checksums are less common than SHA-256, and not every system can compute them out of the box:

  • Linux: sha224sum file.iso, or sha224sum -c file.iso.sha224 to check a published checksum file.
  • macOS: shasum -a 224 file.iso.
  • Windows: PowerShell's Get-FileHash and certutil -hashfile do not offer SHA-224. Use OpenSSL, or open the file here with the File source; it is hashed locally.

To compare, paste the published value into Compare with an expected hash. A 56-character hex value can also be SHA-512/224 or SHA3-224, and the tool tells you if your value matches one of those instead.

Frequently asked questions

Is SHA-224 just a truncated SHA-256?
It is truncated, but it also uses different initial hash values, so the output is not the first 224 bits of SHA-256.
Is SHA-224 secure?
Yes. It offers about 112 bits of collision resistance, and no practical attacks are known.
How long is a SHA-224 hash?
224 bits: 28 bytes, 56 hex characters, or 40 characters in Base64 with padding.
Should I choose SHA-224 or SHA-256?
Choose SHA-256 unless a specification requires SHA-224. SHA-256 is more widely supported and gives a larger security margin.

Last updated September 26, 2026

Related tools

SHA-256 Hash Generator Generate the SHA-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA3-224 Hash Generator Generate the SHA3-224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA3-256 Hash Generator Generate the SHA3-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA3-384 Hash Generator Generate the SHA3-384 hash of any text or file online. Instant 384-bit digest in hex, computed in your browser. SHA3-512 Hash Generator Generate the SHA3-512 hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. SHA-384 Hash Generator Generate the SHA-384 hash of any text or file online. Instant 384-bit digest in hex, computed in your browser. SHA-512/224 Hash Generator Generate the SHA-512/224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA-512/256 Hash Generator Generate the SHA-512/256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA-512 Hash Generator Generate the SHA-512 hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. SHAKE-128 Hash Generator Generate SHAKE-128 extendable-output (XOF) hashes of any length from text or files. SHAKE-256 Hash Generator Generate SHAKE-256 extendable-output (XOF) hashes of any length from text or files. SRI Hash Generator Generate Subresource Integrity (SRI) sha384 hashes and ready-to-paste <script> or <link> tags with integrity and crossorigin attributes.