sha224 hash generator online

Create the sha224 hash of any text: 56 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

Compare, hash a file, copy any format

Type text in the tool above or choose a file. Case, spaces and prefixes like sha224: don't matter.

Formats for hello world
Hex
2f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b
HEX (upper case)
2F05477FC24BB4FAEFD86517156DAFDECEC45B8AD3CF2522A563582B
Base64
LwVHf8JLtPrv2GUXFW2v3s7EW4rTzyUipWNYKw==

Files are read in your browser and never uploaded.

In short

What is SHA-224?

SHA-224 is SHA-256 with different start values, cut to 224 bits (56 hex characters). It exists for systems that need a 112-bit security level and a shorter hash. In practice SHA-256 is used far more often.

SecureNo practical attacks known. Fine for integrity checks and signatures.
Try it

Change one letter, see what happens

A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.

Hash A…
Hash B…

Calculating…

Use it in code

The same result in your code

Every snippet prints 2f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b for hello world, the same as the tool. They are run against PHP's hash() before each release.

PHP
echo hash('sha224', 'hello world');
Python
import hashlib

print(hashlib.sha224("hello world".encode()).hexdigest())
Node.js
import { createHash } from "node:crypto";

console.log(createHash("sha224").update("hello world").digest("hex"));
Java
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.util.HexFormat;

public class Hash {
  public static void main(String[] args) throws Exception {
    byte[] digest = MessageDigest.getInstance("SHA-224")
        .digest("hello world".getBytes(StandardCharsets.UTF_8));
    System.out.println(HexFormat.of().formatHex(digest)); // Java 17+
  }
}
Go
package main

import (
	"fmt"
	"crypto/sha256"
)

func main() {
	fmt.Printf("%x\n", sha256.Sum224([]byte("hello world")))
}
Command line
printf '%s' 'hello world' | sha224sum

# macOS: printf '%s' 'hello world' | shasum -a 224
# File on Windows: certutil -hashfile file.zip SHA224
Test values

SHA-224 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputsha224
empty stringd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f
abc23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7
hello world2f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b
The quick brown fox jumps over the lazy dog730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525
Common mistakes

Why your SHA-224 doesn't match

SHA-224 is not SHA-256 cut short

It uses different start values. The first 56 characters of SHA-256 are not a SHA-224 hash.

Not for passwords

A fast hash lets attackers try billions of guesses per second. Store passwords with Argon2id, bcrypt or scrypt, which are slow on purpose and use a salt.

A line break sneaks in

echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.

Same text, different bytes

The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.

Upper or lower case

Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".

This tool trims and uses CRLF

Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.

Compare

The SHA-2 family side by side

The same text, every SHA-2 algorithm. Shown for hello world; type in the tool above to use your text.

AlgorithmHashBits
sha2242f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b224
sha256b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9256
sha384fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd384
sha512/22422e0d52336f64a998085078b05a6e37b26f8120f43bf4db4c43a64ee224
sha512/2560ac561fac838104e3f2e4ad107b4bee3e938bf15f2b15f009ccccd61a913f017256
sha512309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f512
Measured on your device

How fast is SHA-224?

Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.

FAQ

Questions about SHA-224

Can SHA-224 be decrypted?

No. SHA-224 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" SHA-224 look the hash up in large tables of known inputs, which only works for short or common strings.

How long is a SHA-224 hash?

A SHA-224 hash is always 224 bits, written as 56 hexadecimal characters (28 bytes), no matter how long the input is.

Is SHA-224 secure?

Yes. No practical attack on SHA-224 is known, and it is approved for integrity checks and signatures. For passwords use a slow password hash instead.

Should I hash passwords with SHA-224?

No. SHA-224 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.