Home / Tools / Hash generator (SHA-256, SHA-1, SHA-512)

Hash generator (SHA-256, SHA-1, SHA-512)

Work out the SHA-256, SHA-1, SHA-384 or SHA-512 hash of some text or a file, and compare it with a published value to check a download hasn't been changed or corrupted.

  • Code tool
  • Runs in your browser
  • Tested 19 November 2026
  • Sources
The file is read on your device and never uploaded. Large files can take a few seconds.

What a hash is

A cryptographic hash turns any amount of data into a fixed-length fingerprint. SHA-256 always gives 64 hex characters. The same input always gives the same hash, but change a single bit and the hash changes completely. It's also designed so that nobody can find a different input with the same hash, or work backwards from the hash to the input.

Checking a download

Many projects publish the SHA-256 of their downloads, including Raspberry Pi OS images and many firmware releases. Choose the downloaded file above, paste the published hash into the compare box, and the tool tells you whether they match. If they don't, the file is corrupted or isn't the one the publisher released, so don't use it.

Which one to use

  • SHA-256 is the usual choice today. SHA-384 and SHA-512 are from the same SHA-2 family, with longer outputs.
  • SHA-1 is shown only for checking older published values. Researchers produced two different files with the same SHA-1 in 2017, so it shouldn't be used for anything new where security matters.
  • MD5 isn't offered. It's been broken for much longer, and browsers don't provide it.
  • Passwords should never be stored as a plain hash. Use a slow password hashing function such as Argon2 or bcrypt, which your language's libraries provide.

The hashes are worked out by your browser's built-in Web Crypto API, which needs a secure (https) connection.

Sources

Where the formulas and figures on this page come from. We test every tool against worked examples from these before publishing.