Developer Tools

Hash Generator

Compute SHA-256, SHA-384, SHA-512 and SHA-1 hashes of text or files, and check a download’s checksum.

By Nitin Raturi · Last reviewed

Input

How to use the Hash Generator

Work out SHA hashes of text or files, and check a download against its published checksum.

  1. Type text, or choose a file.
  2. Read the SHA-256, SHA-384, SHA-512 and SHA-1 hashes.
  3. To check a download, paste the expected checksum.
  4. Copy any hash in hex or Base64.

Good to know

  • Do not use plain hashes to store passwords; use a password-hashing function.
  • Tap the ⓘ next to any field for a short guide to it.

SHA-1 and SHA-2 hashes computed by your browser’s Web Crypto engine.

Runs in your browser. Nothing you type is uploaded or saved in the link.

Text

The text to hash. It is turned into UTF-8 bytes first, exactly as most programs do.

How to fill it in

  • Paste or type. A trailing space or line break changes the hash, so copy carefully.

Example

SHA-256 of “abc” is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.

Or hash a file

Choose a downloaded file to work out its checksum and compare it with the one the publisher gives.

How to fill it in

  • Files up to 200 MB. The file is read on your device and never uploaded.

Expected checksum

Paste the checksum from a download page to see whether it matches.

How to fill it in

  • Hex in any case, with or without spaces, or Base64. The tool finds which algorithm matches.

Tip: Get the checksum from the official site over HTTPS, not from the same mirror as the file.

Result

Input
3 bytes
Status
Done

SHA-256

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

SHA-384

—

SHA-512

—

SHA-1 (legacy, not collision-safe)

—

SHA-256 in Base64

—

How this calculator works

  1. Step 1Read the bytesUTF-8 or fileText becomes bytes; a file is read as it is.
  2. Step 2Mix them thoroughlySHA-256Every bit of input affects every bit of output.
  3. Step 3Get a fixed-size digest64 hex digitsThe same input always gives the same digest.

A hash is a fingerprint of data. It is easy to compute and practically impossible to reverse or to forge for a different input.

Worked example: two NIST messages

Any input, short or long, gives a digest of the same length that looks unrelated to it.

SHA-256 of NIST’s two example messages
Algorithm
SHA-256 (FIPS 180-4)
  1. “abc” (3 bytes)ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
  2. “abcdbcdecdef…” (56 bytes)248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1
  3. Digits in the same position2 of 64
  4. Digest length64 hex digits = 256 bits

Both values are the ones NIST publishes, and this page’s engine reproduces them.

Reading the result

  • SHA-256 and longerUse theseCurrent standard for checksums and integrity checks.
  • SHA-1Legacy onlyCollisions have been demonstrated; keep it for old systems only.
  • Verify downloadsCompare with the checksum the publisher lists.
  • Detect changesA different hash means the data changed.
  • Not for passwordsStore passwords with Argon2id or scrypt instead.
  • No MD5Browsers do not offer MD5; it is broken anyway.

A hash fingerprints data; it cannot be reversed. Encoding can be.

To encode data reversibly, use the Base64 encoder and decoder. For a random secret, try the password generator, and for unique IDs, the UUID generator.

Common mistakes

  • Mistake: Copying text with a trailing line break.

    Instead: Check the byte count; invisible characters change the hash.

  • Mistake: Taking the checksum from the same place as the file.

    Instead: Get it from the official site over HTTPS.

  • Mistake: Hashing passwords with plain SHA-256.

    Instead: Use a slow password-hashing function such as Argon2id.

Read how we test our calculators, or browse more developer tools.

Frequently asked questions

How do I check a downloaded file?

Choose the file, then paste the checksum from the publisher’s website. The tool tells you whether it matches and which algorithm it is.

Is my file uploaded?

No. Your browser reads and hashes the file on your device. Nothing is sent to a server.

Why is there no MD5?

MD5 is broken for security use and browsers do not include it in their built-in cryptography. Use SHA-256 instead.

Can I hash passwords with this?

Not for storage. Plain hashes are fast to guess. Passwords should be stored with a slow password-hashing function such as Argon2id or scrypt.

Why does my hash differ from another tool’s?

Usually the input differs by an invisible character, such as a trailing line break, or the other tool used a different text encoding. Compare the byte counts.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 27 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release. Demand metrics remain unverified.