Rates TodayNIFTY25,144.3+0.46%SENSEX81,592.5+0.70%Gold 24K ₹12,488.64/g down3.66Silver ₹156.28/g down0.05
InsightforGeeks

Hash Generator (MD5, SHA-256, SHA-512)

Create hashes of any text or file in your browser: MD5, SHA-1, SHA-256, SHA-384, SHA-512 and the CRC-32 checksum. Compare a hash someone gave you to check that a download is intact, or calculate an HMAC with a secret key. Your text and files never leave your device.

HMAC (keyed hash)

Enter text above and a key to see the HMAC.

How to use it

  1. Choose Text or File. For text, type or paste it. For a file, choose it (up to 50 MB).
  2. Read or copy the hash you need. Switch to uppercase or Base64 output if you need them.
  3. To verify a download, paste the hash published by the source into “Check against a hash you were given”. The matching row turns green.
  4. For a keyed hash, open the HMAC section, enter a secret key and pick SHA-256 or another SHA algorithm.

Frequently asked questions

What is a hash?

A hash is a fixed-length fingerprint of data. The same input always gives the same hash, and changing even one character gives a completely different one. It cannot be turned back into the original data.

Which algorithm should I use?

Use SHA-256 or SHA-512 for anything related to security or file integrity. MD5 and SHA-1 are broken: attackers can create different data with the same hash, so use them only for non-security things like spotting duplicate files. CRC-32 is a simple error-detecting checksum and offers no security.

Can I use these hashes to store passwords?

No. Fast hashes like SHA-256 are the wrong tool for passwords, because attackers can try billions of guesses per second. Passwords need a slow, salted algorithm such as bcrypt, scrypt or Argon2, applied on the server.

What is HMAC?

HMAC mixes a secret key into the hash, so only someone with the key can produce or verify it. It is used to sign API requests and webhooks, and to check that a message has not been altered.

Why does my hash not match the one on the website?

Hashing is exact. A trailing space or line break in the text, a different character encoding, or a file that did not download completely will give a different result. Text here is hashed as UTF-8.

Is my data uploaded?

No. Everything is calculated in your browser, including for files.

Related tools

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.