What is SHA-224?
SHA-224 is SHA-256 with different initial values, cut to 224 bits (56 hex characters). It exists to match the 112-bit security level of 3-key Triple DES and appears in some smart cards and protocols.
SHA-224 is rarely the first choice today; people compute it to match a protocol or a stored value that already uses it.
This page opens the hash generator with SHA-224 on top and highlighted. The text is encoded as UTF-8 and hashed in your browser as you type; nothing is sent anywhere.
SHA-224 at a glance
| SHA-224 | |
|---|---|
| Digest size | 224 bits (56 hex characters) |
| Standard | FIPS 180-4 |
| Published | 2004 |
| Secure against attackers | yes |
| Where it is used | smart cards, some signature schemes, places that need a digest shorter than SHA-256 |
| Good for passwords | no: use bcrypt or Argon2 |
How to generate a SHA-224 hash
- Type or paste the text in the input box.
- Read the SHA-224 row, at the top of the list; it updates as you type.
- To check a known SHA-224, paste it in the comparison field: the matching row lights up.
Example
SHA-224 of three inputs, computed by the same code as the tool:
| Input | SHA-224 (hex) |
|---|---|
hello world | 2f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b |
| (empty text) | d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f |
stdlib.tools | 4e3d0d6b4f044bf3f6d26cbb3c9d6269ce23138a9c9c43aa96a0af91 |
A single invisible line break changes everything: hello world followed by a newline (what echo prints) gives 95041dd60ab08c0bf5636d50be85fe9790300f39eb84602858a9b430. When your value does not match, check trailing spaces and line breaks first.
SHA-224 in code
Node.js
import { createHash } from 'node:crypto';
createHash('sha224').update('hello world').digest('hex');Python
import hashlib
hashlib.sha224(b"hello world").hexdigest()Bash
printf 'hello world' | sha224sumFrequently asked questions
Is SHA-224 still secure?
Yes. Typical uses today: smart cards, some signature schemes, places that need a digest shorter than SHA-256.
How long is a SHA-224 hash?
224 bits: 56 hexadecimal characters, or 40 characters in Base64 (with padding), such as LwVHf8JLtPrv2GUXFW2v3s7EW4rTzyUipWNYKw== for hello world.
Why does my SHA-224 differ from another tool?
The input differs: a trailing newline, spaces or another text encoding (UTF-8 here). Hex is case-insensitive.