Skip to content
ToolZone

SHA256

Compute the SHA-256 hash of any text input, widely used for checksums, digital signatures, and general cryptographic purposes today.

Runs in your browser. Nothing you enter or upload leaves your device.

SHA-256
—
MD5 · not collision-resistant
—
SHA-1 · not collision-resistant
—
SHA-384
—
SHA-512
—

All hashes are computed in your browser. MD5 and SHA-1 are fine for checksums but should not be used for passwords or signatures.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Enter text, or switch to File and drop the file to check.

  2. 2

    Read the SHA-256 card at the top of the results.

  3. 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.

Input
hello
Result
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Why plain hashes are poor for passwords

Hashing a common password.

Input
password
Result
5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8

This exact value appears in public lookup tables, so an unsalted SHA-256 of a common password can be reversed by searching for it.

Limitations
Files over 200 MB aren't supported. Output is hex only, not Base64. A plain hash does not prove who created the data; use HMAC or digital signatures for that.
Assumptions
Text is encoded as UTF-8 before hashing.
Privacy
Hashes are calculated in your browser and your text is not uploaded or stored.

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.

Related tools