Hash generator · Guide

SHA256 Generator From File: Checksums for Any Download

File checksums are the everyday use of SHA-256: confirm a download completed intact, detect a corrupted backup, prove two copies are identical. Every platform has the tool built in.

The command everywhere

Shell
sha256sum release.tar.gz         # Linux
shasum -a 256 release.tar.gz     # macOS
Get-FileHash release.zip         # Windows PowerShell (SHA-256 default)
certutil -hashfile release.zip SHA256   # Windows, older

No download is required on any of them — Get-FileHash has shipped since Windows 8. Fetching a "SHA256 calculator" executable from an unfamiliar site trades a built-in tool for an unknown binary, which is a poor bargain.

In the browser

Drop the file into the generator and it is hashed locally via the Web Crypto API. Nothing is uploaded, which matters for internal artifacts and signed builds.

The result is byte-for-byte the same as the command line, since both hash the raw bytes with no transformation. Memory is the practical limit — for very large files use the terminal.

Recording and re-checking

Checksum files let you snapshot a directory and verify it later, which is how backups and release artifacts are usually validated:

Shell
sha256sum *.tar.gz > SHA256SUMS   # record
sha256sum -c SHA256SUMS           # verify, non-zero exit on mismatch

The exit code makes it usable directly as a CI gate. Keep the checksum file somewhere the artifact publisher cannot silently rewrite, or the check proves nothing about authenticity.

Frequently asked questions

Does file size change the digest length?

No. Every SHA-256 is 64 hex characters regardless of input size.

Why does Windows print uppercase?

Get-FileHash formats uppercase hex. It is the same value — compare case-insensitively.

Can I hash a folder?

Not directly. Hash each file, or hash an archive of the folder — but note that archive metadata such as timestamps changes the digest.

Ready to try it?

Open the free browser-based Hash generator and apply what you just read — no sign-up, runs locally.

Open the Hash generator tool