SHA256 Hash Generator for Text
Turn any string, password list entry, JSON snippet or message into its SHA-256 hash as you type. See the byte size of your input and copy the result in hex or Base64.
Generate the SHA-256 hash of any text or file, verify a SHA256 checksum in one step and compare two hashes. Everything runs in your browser, so nothing is uploaded.
Uppercase and lowercase are treated as the same, and spaces or file names around the hash are ignored.
Type or paste text, or drop a file into the File tab.
The 64-character hash and its Base64 form appear instantly.
Paste the official checksum to see a clear match or mismatch.
Need to check a SHA256 hash quickly and without installing anything? This free SHA256 checker generates the SHA-256 hash of any text or file, verifies it against the checksum you paste from a download page and compares two SHA-256 values side by side. Type or paste a string to get its SHA-256 digest instantly, drop a file such as a Linux ISO, a software installer or a backup to calculate its SHA256 checksum with a live progress bar, or paste two hashes to see whether they are identical. You also get the hash in Base64, which is the format used for Subresource Integrity, plus Double SHA-256 and HMAC-SHA256 modes for developers. Every calculation runs inside your browser with an implementation that was tested against reference results, so your text and files are never uploaded, logged or stored. There is no signup, no installation and no limit on how many hashes you can create.
Turn any string, password list entry, JSON snippet or message into its SHA-256 hash as you type. See the byte size of your input and copy the result in hex or Base64.
Calculate the SHA256 checksum of any file, even multi-gigabyte ISO images, and compare it with the official value to confirm that your download is complete and unchanged.
Paste two SHA-256 hashes and see at once whether they match. If they differ, the tool shows how many characters are different and where the first difference is.
You can generate and verify a SHA-256 hash with this tool in a few seconds. Choose the method that fits what you want to check.
SHA-256 is a cryptographic hash function from the SHA-2 family, standardized by NIST in FIPS 180-4. It takes any input, from a single character to a very large file, and produces a fixed 256-bit digest. That digest is normally written as 64 hexadecimal characters, or as 44 characters in Base64. The same input always produces the same output, but even a tiny change in the input, such as one extra space or one flipped bit, creates a completely different hash.
SHA-256 is a one-way function. You can calculate the hash from the data, but you cannot turn the hash back into the data. No practical collision attack on SHA-256 is publicly known, which is why it is the default choice for file integrity checks, digital signatures, certificates, package managers, container images and blockchains.
Most trustworthy download pages publish a SHA256 checksum next to the file, or in a file named SHA256SUMS. Verifying it protects you from incomplete, corrupted or wrong files.
You can also verify against a whole checksum file on the command line with sha256sum -c SHA256SUMS on Linux.
Developers often need the SHA-256 hash of a string, for example to check an API signature, to build a cache key or to test code. Here are known test values you can try in the Text tab, using the exact text without quotes.
| Input | SHA-256 hash |
|---|---|
| (empty string) | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
| abc | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
| hello | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
| hello + line break | 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 |
| Hello, World! | dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f |
The same command-line results are available with echo -n "hello" | sha256sum on Linux, echo -n "hello" | shasum -a 256 on macOS, or openssl dgst -sha256 in a terminal.
The most common reason is a hidden line break. The text "hello" and the text "hello" followed by a new line are different inputs, so they have different hashes, as the table above shows. Many commands, such as plain echo "hello", add a trailing newline, while this tool hashes exactly what is in the box. Turn on Ignore trailing line break if you copied a value that ends with a newline, or use echo -n in the terminal so that no newline is added.
Other causes are different character encodings (this tool uses UTF-8), extra spaces, different line endings (Windows uses CRLF, Linux uses LF) and invisible characters picked up when copying text from a web page or a document.
The File tab gives the same value as the built-in tools of your operating system, and it is quicker when you also want to compare against a checksum.
Get-FileHash .\file.iso -Algorithm SHA256certutil -hashfile file.iso SHA256shasum -a 256 file.isosha256sum file.iso or openssl dgst -sha256 file.isoBesides hex, the tool shows the SHA-256 hash as a 44-character Base64 string. This is the format used in the integrity attribute of HTML tags for Subresource Integrity, written as sha256- followed by the Base64 digest. Browsers use it to confirm that a script or stylesheet loaded from a CDN has not been changed. Container registries and some package tools also display digests in a similar prefixed style. You can paste a Base64 SHA-256 value into the verify box or the Compare tab, and the tool converts it automatically.
HMAC-SHA256 combines SHA-256 with a secret key to create a message authentication code. Unlike a plain hash, only someone who knows the key can produce the correct value, so it is widely used to sign API requests, verify webhooks and protect tokens. Select HMAC-SHA256 in the text mode, enter your secret key and your message, and the tool calculates the HMAC in hex and Base64. The key is used only in your browser and is not sent anywhere. For real systems, keep production keys out of online tools and use test keys here.
Double SHA-256, also written SHA256d, means applying SHA-256 twice: the hash of the hash. It is best known from Bitcoin, which uses it for block headers and transaction IDs. Choose Double SHA-256 in the text mode to calculate it. Keep in mind that the tool hashes the text you type, while blockchain data is usually binary, so for raw bytes you must first convert your data to the right format.
Comparing long hashes by eye is slow and error-prone, because two different hashes can look alike at the start and the end. The Compare hashes tab removes the guesswork. Paste both values, in hex or Base64, in any mix of uppercase and lowercase, and the tool tells you instantly whether they are identical. If they differ, it shows how many characters are different and the position of the first difference, which helps when you are looking for a copy and paste mistake.
A mismatch does not always mean something is wrong, but it should never be ignored. Check these common causes.
SHA-256 is considered secure for integrity checks and digital signatures, and no practical collision or preimage attack on it is publicly known. But it is important to know its limits. A hash is not encryption, because there is nothing to decrypt and the original data cannot be recovered from the hash. A matching hash shows that a file is the same as the one that produced the checksum, but it does not show that the file is safe or that the website that published the checksum is trustworthy. Always take checksums from the official source over HTTPS, and verify digital signatures for high-risk software when they are offered.
SHA-256 on its own is also not the right way to store passwords. It is designed to be fast, which helps attackers who try billions of guesses per second. For passwords, use a slow, salted algorithm made for the purpose, such as Argon2, bcrypt or scrypt.
MD5 (32 hex characters) and SHA-1 (40 hex characters) are older algorithms. Researchers have shown practical collision attacks against both, so they are fine for catching accidental corruption but should not be trusted against deliberate tampering. SHA-512 is a longer member of the same family and is also considered secure; SHA-256 is simply the most widely published and supported. If you need MD5, SHA-1, SHA-384, SHA-512 or CRC32, use our File Hash Checker.
The SHA-256 algorithm runs as JavaScript in your own browser. Text is encoded as UTF-8 and hashed immediately. Files are read in small chunks of a few megabytes and fed into the calculation one piece at a time, so even very large files work without filling your memory. The implementation was checked against reference results for many input sizes, chunk sizes and HMAC keys. Nothing is uploaded, which means your files, texts and keys stay on your device. You can even disconnect from the internet after the page has loaded and the tool will keep working.
This SHA256 calculator works on desktop and mobile in any modern browser, with no account, no download and no payment. Looking for something related? Try the Hash Generator for text hashes, the File Hash Checker for more algorithms, and the Password Generator and PIN Generator to create strong credentials.
Find answers to common questions about generating a SHA-256 hash, verifying a SHA256 checksum and comparing hashes.
A SHA256 checker is a tool that calculates the SHA-256 hash of text or a file and lets you compare it with an expected checksum, so you can confirm that the data is complete and unchanged.
Open the File tab, add your file and wait for the calculation to finish. Then copy the SHA-256 hash or paste the official checksum into the verify box to see whether they match.
Open the Text tab and type or paste your string. The SHA-256 hash is created instantly, in hex and Base64, and you can copy either one.
No. All hashing happens in your browser. Files, text and keys are never uploaded, sent to a server or stored.
Yes. It is completely free, with no signup, no limits and no watermark.
A SHA-256 hash is 256 bits long. In hexadecimal that is 64 characters, and in Base64 it is 44 characters including the padding.
No. SHA-256 is a one-way function, not encryption. The original data cannot be recovered from the hash, although weak or common inputs can be guessed by trying many candidates.
Yes, for integrity checks, digital signatures and many other uses. No practical collision attack is publicly known. It is not the right choice for storing passwords on its own, where Argon2, bcrypt or scrypt should be used.
Usually because of a hidden newline. Commands like echo add a line break unless you use echo -n. Turn on Ignore trailing line break, or make sure both sides hash exactly the same text.
A hash depends on every byte of the input. An extra space or line break is an extra byte, so the hash is completely different.
Hash the downloaded file, paste the official SHA-256 value into the verify box and check for a match. If the values differ, download the file again from the official source.
Yes. The tool finds the 64-character hash in the text you paste and ignores the file name next to it.
Yes. Use the Compare hashes tab. It ignores case and spaces, accepts hex and Base64, and shows where the first difference is if the hashes do not match.
It is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
HMAC-SHA256 is a keyed hash. It mixes a secret key with the message before hashing, so only someone with the key can produce the same value. It is widely used to sign API requests and verify webhooks.
Double SHA-256, or SHA256d, applies SHA-256 twice. It is used in Bitcoin for block headers and transaction IDs.
Base64 is a shorter text form of the same hash. It is used in Subresource Integrity attributes, where the value is written as sha256- followed by the Base64 digest.
SHA-256 produces a longer 256-bit hash and has no known practical collisions, while MD5 and SHA-1 are broken against collision attacks. Use SHA-256 for anything that needs to resist tampering.
Then it is not SHA-256. A 32-character value is MD5, a 40-character value is SHA-1 and a 128-character value is SHA-512. Use the File Hash Checker for those algorithms.
Yes. Files are read in chunks, so very large files such as ISO images can be hashed. Speed depends on your device.
Text is encoded as UTF-8 before hashing, which matches most command-line tools and programming languages by default.
No. A match shows that the file is identical to the one that produced the checksum. It does not show that the file is free of malware. Always get files and checksums from official sources.
Yes. It runs in modern browsers on phones and tablets without any app or signup.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →