Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

SHA256 Checker

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.

  • 100% free
  • No Signup
  • Text & file support
0 characters · 0 bytes (UTF-8)
Your SHA-256 hash will appear here.
ADVERTISEMENT
Demo Ad 728 x 90

How to check a SHA256 hash

1Add text or a file

Type or paste text, or drop a file into the File tab.

2Get the SHA-256 hash

The 64-character hash and its Base64 form appear instantly.

3Verify

Paste the official checksum to see a clear match or mismatch.

SHA-256 GUIDE

SHA256 Checker – Free Online SHA-256 Hash Generator, Checksum Verifier and Hash Comparison Tool

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.

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.

SHA256 Checksum of a File

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.

Compare SHA256 Hashes

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.

How to Check a SHA256 Hash Online

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.

  1. To hash text: Open the Text tab, type or paste your string and read the SHA-256 hash that appears below. Copy it in hex or Base64 with one click.
  2. To hash a file: Open the File tab and drag your file into the box, or click Select files. A progress bar shows the calculation, and the SHA-256 hash appears when it is done.
  3. To verify a checksum: Paste the official SHA-256 value into the verify box in the settings. The tool compares it with your text or file hash and shows a clear match or no-match message.
  4. To compare two hashes: Open the Compare hashes tab, paste both values and read the result.

What Is SHA-256?

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.

How to Verify a SHA256 Checksum of a Download

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.

  • Copy the official checksum: Take it from the publisher's website over HTTPS.
  • Hash your file: Add the downloaded file in the File tab.
  • Paste and compare: Paste the official value into the verify box. Lines copied from a checksum file, including the file name, work too.
  • Read the result: A match means that your file is identical to the original. If there is no match, delete the file and download it again.

You can also verify against a whole checksum file on the command line with sha256sum -c SHA256SUMS on Linux.

How to Get the SHA256 of a String or Text

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.

InputSHA-256 hash
(empty string)e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abcba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
hello2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
hello + line break5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03
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.

Why Does Text Give a Different SHA256 Than My 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.

How to Calculate the SHA256 Hash of a File on Windows, macOS and Linux

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.

  • Windows PowerShell: Get-FileHash .\file.iso -Algorithm SHA256
  • Windows Command Prompt: certutil -hashfile file.iso SHA256
  • macOS: shasum -a 256 file.iso
  • Linux: sha256sum file.iso or openssl dgst -sha256 file.iso

SHA-256 in Base64 and Subresource Integrity (SRI)

Besides 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: Hash With a Secret Key

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 (SHA256d) and Bitcoin

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.

Compare Two SHA256 Hashes

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.

Why Doesn't My SHA256 Checksum Match?

A mismatch does not always mean something is wrong, but it should never be ignored. Check these common causes.

  • Incomplete or damaged download: The most common reason. Download the file again.
  • Different file or version: Make sure the checksum belongs to the exact file you downloaded, for the right platform and release.
  • Wrong algorithm: A SHA-256 value has 64 hex characters. A 32, 40 or 128 character value is MD5, SHA-1 or SHA-512 and will never match.
  • Hidden characters: Extra spaces, quotes or line breaks in text hashing change the result.
  • Copy and paste errors: A missing or extra character breaks the match. Paste the entire value.
  • Modified file: Opening and re-saving a document, or converting line endings in a text file, changes its hash.

Is SHA-256 Secure? What It Can and Cannot Do

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.

Where Is SHA-256 Used?

  • Software downloads: Linux distributions, installers and firmware images publish SHA256 checksums.
  • Container images: Image digests in Docker and other registries are SHA-256 hashes.
  • Web security: TLS certificates, certificate fingerprints and Subresource Integrity use SHA-256.
  • Blockchain: Bitcoin uses SHA-256, including the double SHA-256 form, for mining and transaction IDs.
  • APIs and webhooks: HMAC-SHA256 signs and verifies requests.
  • Package managers and build tools: Many tools use SHA-256 to pin the exact contents of dependencies.
  • Forensics and backups: SHA-256 confirms that evidence files and archives have not changed.

SHA-256 vs MD5, SHA-1 and SHA-512

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.

How This SHA256 Checker Works and Why It Is Private

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.

Free SHA256 Calculator Online With No Signup

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.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About SHA256 Checkers

Find answers to common questions about generating a SHA-256 hash, verifying a SHA256 checksum and comparing hashes.

What is a SHA256 checker?

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.

How do I check the SHA256 of a file?

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.

How do I generate the SHA256 hash of a string?

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.

Are my files or text uploaded?

No. All hashing happens in your browser. Files, text and keys are never uploaded, sent to a server or stored.

Is this SHA256 generator free?

Yes. It is completely free, with no signup, no limits and no watermark.

How long is a SHA-256 hash?

A SHA-256 hash is 256 bits long. In hexadecimal that is 64 characters, and in Base64 it is 44 characters including the padding.

Can a SHA-256 hash be decrypted?

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.

Is SHA-256 safe to use?

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.

Why is my SHA256 different from the one I got in the terminal?

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.

Why does a trailing space or newline change the hash?

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.

How do I verify a downloaded file with a SHA256 checksum?

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.

Can I paste a line from a SHA256SUMS file?

Yes. The tool finds the 64-character hash in the text you paste and ignores the file name next to it.

Can I compare two SHA256 hashes?

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.

What is the SHA256 of an empty string?

It is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.

What is HMAC-SHA256?

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.

What is double SHA-256?

Double SHA-256, or SHA256d, applies SHA-256 twice. It is used in Bitcoin for block headers and transaction IDs.

What is the Base64 output used for?

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.

How is SHA-256 different from MD5 and SHA-1?

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.

What if my checksum has 32, 40 or 128 characters?

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.

Does it work with large files?

Yes. Files are read in chunks, so very large files such as ISO images can be hashed. Speed depends on your device.

Which character encoding does the text mode use?

Text is encoded as UTF-8 before hashing, which matches most command-line tools and programming languages by default.

Does a matching hash mean a file is safe?

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.

Does it work on mobile?

Yes. It runs in modern browsers on phones and tablets without any app or signup.

ADVERTISEMENT
Demo Ad 320 x 50

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →