Tools / Hash generator

SHA-256 hash & checksum generator

Calculate a SHA-2 digest for text or a file without uploading it. Hashes can help compare data; a matching hash alone does not prove a file is safe or authentic.

Or select a file (up to 25 MB). Choosing a file will clear the text input.

Use this as the integrity value on a <script> or stylesheet <link> (add crossorigin="anonymous" for a cross-origin file). To audit a live page, use the SRI checker.

More free checks

Run a full security scan or speed test on your site, or try a related tool.

Related free tools

See all free tools →

About these hashes

How to verify a download

  1. Find the published checksum on the vendor’s download page, usually labelled SHA-256.
  2. Choose the same algorithm here and select the downloaded file.
  3. Press Calculate hash, then paste the published value into Verify against an expected hash. A match means the file is byte-for-byte the one the publisher hashed.

Get the checksum from the publisher’s own site over HTTPS, not from the mirror that served the file. If an attacker can swap the file, they can often swap a checksum stored next to it too.

Frequently asked questions

Why are MD5 and SHA-1 not offered?

Both are broken for security purposes: researchers can create two different files with the same MD5 or SHA-1 hash. The browser’s Web Crypto API, which this page uses, provides the SHA-2 family, and SHA-256 is what most publishers use today.

What is the Subresource Integrity token for?

It is the same digest in Base64, prefixed with the algorithm, in the format browsers expect in a <script integrity="…"> attribute. If a CDN ever serves a modified file, the browser refuses to run it.

Does hashing text give the same result as other tools?

Yes, provided the text is identical. Text is hashed as UTF-8, so a trailing newline, a different line ending (CRLF vs LF) or an invisible space will change the hash completely.

Can I use SHA-256 to store passwords?

No. Fast hashes are easy to brute-force. Store passwords with a slow password-hashing function such as Argon2id, bcrypt or scrypt.