About the SHA256
This SHA256 page hashes text or files with SHA-256, the most widely used member of the SHA-2 family, and shows the 64-character result immediately. Paste a published checksum to verify a download, and see MD5, SHA-1, SHA-384 and SHA-512 for the same input.
How it works
SHA-256 pads the input to a multiple of 512 bits, appending the message length, then processes each block through 64 rounds that mix eight 32-bit working variables using additions, rotations and logical functions with a fixed table of constants. The final state is the 256-bit digest.
Here, your text is encoded as UTF-8 and passed to the Web Crypto API's digest function. The returned bytes are written as hex, two characters per byte, giving 64 characters. The SHA-256 card is highlighted by default.
How to use
- 1
Enter text, or switch to File and drop the file to check.
- 2
Read the SHA-256 card at the top of the results.
- 3
Paste the expected checksum into Verify, or click Copy.
Worked examples
Hashing a word
You need the SHA-256 of hello for a test.
Why plain hashes are poor for passwords
Hashing a common password.
This exact value appears in public lookup tables, so an unsalted SHA-256 of a common password can be reversed by searching for it.
Frequently asked questions
Why is SHA-256 commonly used?+
It has strong collision resistance, is fast in software and hardware, and is supported everywhere, which makes it the default for checksums, certificates, blockchains and API signing.
How long is a SHA-256 hash?+
Always 256 bits, shown as 64 hexadecimal characters, no matter how long the input is.
Can SHA-256 be reversed?+
No. It is a one-way function. Only guessing the input and comparing hashes works, which is practical for short or common strings but not for long random ones.
Why does echo hello | sha256sum give a different result?+
echo adds a newline, so the command hashes hello followed by a line break. Use echo -n hello or printf hello to match the value shown here.
Is SHA-256 the same as SHA-2?+
SHA-256 is one member of the SHA-2 family, which also includes SHA-224, SHA-384 and SHA-512.