How to use the SHA-256 generator
- Type or paste text. Its 64-character SHA-256 hash appears below immediately.
- Turn on Hash each line separately to hash a list, such as customer emails, and download a CSV of each value with its hash.
- Turn on HMAC with a secret key to calculate an HMAC-SHA256 signature, and choose hex or Base64 to match the format you are checking.
What SHA-256 is
SHA-256 is part of the SHA-2 family of hash functions, designed by the NSA and published by NIST in 2001. It turns any input into a 256-bit value, written as 64 hexadecimal characters. It is the standard choice for checksums and digital fingerprints today: TLS certificates, software downloads, package managers, Git’s newer object format and Bitcoin’s proof of work all rely on it. No practical collision, two inputs with the same SHA-256, has ever been found.
| Input | SHA-256 hash |
|---|---|
| (empty) | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
abc | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
Hashing email lists for ad platforms
Advertising platforms that let you upload a customer list for matching, such as Google Ads Customer Match and Meta custom audiences, ask for email addresses hashed with SHA-256. They also expect each address to be normalized first: trimmed of spaces and in lowercase. A single capital letter or trailing space produces a completely different hash, so the match fails. Clean the list with Remove Duplicate Lines (with Ignore case and Ignore extra spaces on) and the case converter, then paste it here with one address per line. Check each platform’s current rules, because some also normalize phone numbers or Gmail addresses differently.
Checking a webhook signature
Many services sign the requests they send you. They calculate an HMAC-SHA256 of the request body using a secret shared with you, and send the result in a header. To check one by hand, paste the exact raw body, enable HMAC, enter the secret and compare. Some providers sign a combination such as a timestamp, a dot and the body, so follow their documentation for the exact string. Never paste production secrets into a tool you do not trust; this one runs entirely in your browser, which you can confirm by going offline after the page loads.
SHA-256 versus MD5 and SHA-1
MD5 and SHA-1 are older and both have practical collision attacks, so they should only be used to match existing checksums. SHA-256 is the safe default for new work. It is still too fast for storing passwords, which need a slow scheme such as Argon2 or bcrypt. For the old algorithms use the MD5 generator, and for SHA-512, SHA-1 or CRC32 of files in bulk use the checksum calculator.
Frequently asked questions
How do I generate a SHA-256 hash?
Type or paste text into the box. The SHA-256 hash appears immediately as 64 hexadecimal characters and updates as you type. Copy it, or turn on “Hash each line separately” to hash every line of a list.
What is the SHA-256 hash of an empty string?
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. The standard test value for “abc” is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
How do I calculate HMAC-SHA256?
Turn on “HMAC with a secret key” and enter the key. The result is the HMAC-SHA256 of your text, which is how webhooks from payment and messaging platforms are usually signed. Choose Base64 output if the service sends the signature in Base64 rather than hex.
Can SHA-256 be reversed?
No. SHA-256 is a one-way function: there is no way to calculate the input from the hash. Short or common inputs, such as a simple password or a phone number, can still be found by guessing and comparing hashes, so a hash of a small value is not anonymous.
Why does my SHA-256 not match the command line?
Usually a newline. echo "text" | sha256sum hashes the text plus a line break; use echo -n or printf to leave it out. Different line endings, spaces and text encodings also change the hash. This page hashes exactly what is in the box, as UTF-8.
Is my text uploaded?
No. Hashing runs in your browser with WebAssembly. Your text, secret key and files are not sent to SuperUtils or stored.