(empty)
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
The SHA-256 hash of an empty input is a well-known constant.
Generate a SHA-256 hash from text online. Type or paste a message to calculate its 256-bit digest as a 64-character lowercase hexadecimal string, then copy the result. Processing runs locally in your browser with the Web Crypto API, and the algorithm selector also lets you compare SHA-256 with other supported hash functions.
(empty)
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
The SHA-256 hash of an empty input is a well-known constant.
hello world
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
A short message produces a 64-character hex string of fixed length.
Hello world
64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c
Changing one bit (lowercase h → uppercase H) completely changes the hash — the avalanche effect.
The quick brown fox jumps over the lazy dog
d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
A widely used test vector for checking that a SHA-256 implementation returns the expected digest.
SHA-256 (Secure Hash Algorithm 256-bit) is a cryptographic hash function in the SHA-2 family. It converts input of any length into a fixed 256-bit (32-byte) digest, normally written as 64 hexadecimal characters. This online SHA-256 calculator displays the digest in lowercase hex.
SHA-256 is deterministic: identical input bytes always produce the same hash. It is also designed to be one-way and collision-resistant. In practical terms, the digest can identify or verify data, but it cannot be decrypted to reveal the original text. SHA-256 is hashing, not encryption.
SHA-256 checks whether content changed by comparing a newly calculated digest with a trusted value. Common uses include software download checksums, content identifiers, digital-signature workflows, certificate fingerprints, and data deduplication. Bitcoin uses SHA-256 in proof-of-work and double-SHA-256 for several identifiers.
SHA-256 is also a component inside keyed and password-based constructions. HMAC-SHA-256 authenticates messages, API requests, and HS256 JWTs with a secret key; PBKDF2-HMAC-SHA-256 derives keys through repeated hashing. A plain SHA-256 digest does not provide those protections by itself and should not replace HMAC, a digital signature, or a password-hashing function.
The calculator hashes the exact UTF-8 bytes of your text. Letter case, spaces, punctuation, Unicode characters, and line endings are significant, so preserve them when reproducing or verifying a hash. You can switch the algorithm menu to compare the same text with SHA-512, SHA-3, BLAKE2, SHA-1, MD5, or CRC32.
SHA-256 first encodes the message as bytes, appends padding and the message length, and divides the result into 512-bit blocks. Each block passes through 64 rounds of bitwise operations, modular additions, constants, and message-schedule values. The final internal state consists of eight 32-bit words, which together form the 256-bit digest.
A tiny input change should alter roughly half of the output bits, a property called the avalanche effect. For an ideal 256-bit hash, generic preimage search requires about 2256 attempts and generic collision search about 2128. SHA-256 remains suitable for modern integrity and cryptographic protocols when used in the correct construction.
Generate an HMAC from text with a secret key in your browser.
Calculate a SHA-1 hash from text locally in your browser.
Calculate a SHA-512 hash from text locally in your browser.
Calculate an MD5 hash from text locally in your browser.
Calculate a SHA3-256 hash from text locally in your browser.
Calculate a SHA3-512 hash from text locally in your browser.