Free Hash Generator: MD5, SHA-1, SHA-256, SHA-512

Free online hash generator. Create MD5, SHA-1, SHA-256, SHA-512 and CRC32 hashes of text or files, add HMAC and compare with a checksum. It runs in your browser, so nothing is uploaded.

Hash Generator by Utiliby

Free Hash Generator: MD5, SHA-1, SHA-256, SHA-512

Create MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 hashes of text or files, add HMAC, and compare with a checksum. Nothing is uploaded.

Algorithms

HMAC (keyed hash)

Enter a secret key to compute HMAC for MD5 and the SHA family. CRC32 has no keyed form.

Compare with a hash you were given

Disclaimer: This free hash generator runs in your browser, so text and files are not uploaded. MD5, SHA-1 and CRC32 are fine for catching accidental changes but are not safe against deliberate tampering or for storing passwords. Use SHA-256 or stronger to check downloads, and a slow password hash such as Argon2 or bcrypt for passwords. A matching hash proves the file is identical to the one that was hashed, and it is only as trustworthy as the place you got the expected hash from.

Share, cite or embed this tool

Written by the Utiliby editorial team · Last updated October 14, 2026 · Rules and formulas reviewed October 2026

What this free hash generator does

A hash turns any amount of data, from one word to a multi-gigabyte file, into a short fixed-length string. It works like a fingerprint: the same data always gives the same hash, and any change, however small, gives a completely different one. That makes hashes the standard way to check that a download is intact, that two files are identical, or that a message has not been altered.

This free online hash generator calculates MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 for text or files at the same time. It can add an HMAC key, switch between hex and Base64 output, hash raw hex or Base64 bytes, and compare the result with a checksum you were given. Everything runs in your browser, so nothing is uploaded.

A hash is a fingerprint of data report.pdf report.pdf (1 edit) SHA-256 9f86d081884c7d659a2f… 3c2b7e4a10d95f6e88b1…
One tiny change in the input produces a completely different hash, which is why hashes are used to check that data has not changed.

How to use the hash generator

  1. Choose Text or Files. For text, type or paste it. For files, drop one or more files onto the box.
  2. Pick the algorithms. SHA-256 is the best default for checking downloads.
  3. Read the results. Each hash has a Copy button.
  4. Compare. Paste the expected hash in the compare box to see a match or no match.
  5. Save. Download the results in a checksum-style list, or print a summary.

The generator updates as you type, so you can see how one changed character changes every hash.

Hash algorithms compared

AlgorithmOutputStatusGood for
MD5128 bits, 32 hex charactersBroken for securityDetecting accidental changes, legacy systems
SHA-1160 bits, 40 hex charactersBroken for securityLegacy checks such as Git object names
SHA-256256 bits, 64 hex charactersSecureDownload checks, signatures, general use
SHA-384384 bits, 96 hex charactersSecureHigher security margin, TLS
SHA-512512 bits, 128 hex charactersSecureLarge data, fast on 64-bit CPUs
CRC3232 bits, 8 hex charactersNot secureError detection in ZIP and network data

If you do not know which to choose, use SHA-256. It is widely supported, fast and has no known practical attacks.

How to verify a downloaded file

Software publishers often list a checksum next to the download. To check it, hash the file you downloaded using the same algorithm and compare the two values. If they match, the file is exactly the one the publisher hashed. If they differ, the download was corrupted or changed, and you should download it again and not run it.

Take the expected checksum from the publisher's own page, preferably over HTTPS and from a different place than the download link. A checksum on the same page as a tampered file can be tampered with too. For the strongest assurance, also check a digital signature when one is offered.

HMAC and keyed hashes

A plain hash can be created by anyone. An HMAC mixes a secret key into the calculation, so only someone who knows the key can produce or check the value. It is used to sign webhooks, API requests and cookies, and to prove a message came from a trusted sender and was not altered. Enter a key in the HMAC section and the tool computes HMAC with each selected algorithm. Use a long random key, keep it secret, and compare values with a constant-time check in your own code.

Hashing, encryption and password storage

Never use a single fast hash such as MD5 or SHA-256 to store passwords. If you need to hide text so it can be read later, use the Text Encryption tool on this site, and to see how guessable a password is, use the Password Strength Checker.

Why hashes do not match

Everyday uses for hashes

Developers use hashes to name content, to find duplicate files, to cache results and to sign requests. Administrators use them to check that backups and downloads are intact and to monitor files for unexpected changes. Investigators use them to show that a copy of evidence is identical to the original. Version control systems build entire histories out of them. Teachers use them to show how a tiny change spreads through a result, which is called the avalanche effect.

Checking hashes from the command line

You can reproduce every result on this page with tools already on your computer, which is a good way to confirm a download.

SystemCommand for SHA-256
Linuxsha256sum file.iso
macOSshasum -a 256 file.iso
Windows PowerShellGet-FileHash file.iso -Algorithm SHA256
Windows Command Promptcertutil -hashfile file.iso SHA256

Replace SHA256 with MD5 or SHA512 for other algorithms. The Download results button saves a list in the same layout as checksum files, so a later sha256sum -c can verify them.

Collisions, preimages and why old hashes are retired

Security experts judge a hash by three properties. Preimage resistance means you cannot find an input for a given hash. Second-preimage resistance means you cannot find another input with the same hash as a given one. Collision resistance means you cannot find any two inputs with the same hash. MD5 and SHA-1 have lost collision resistance, since researchers have produced two different files with the same hash. That is why certificates, signatures and software releases moved to the SHA-2 family. Collisions do not make old hashes useless for spotting accidental damage, but they stop them from proving that a file was not altered on purpose.

Privacy, limits and responsible use

MD5 and the SHA family are calculated with built-in browser functions and a small local MD5 routine, with no upload. Files up to 1 GB are read into memory, so very large files may be slow or fail on small devices. Hashes do not prove who made a file, only that it matches. Check the source of any expected value, and use a digital signature where it matters.

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 even a tiny change gives a completely different one.

How do I generate a hash for free?

Choose Text or Files, enter your data, pick the algorithms and read the results. Copy any hash with its button or copy them all.

Is my file uploaded?

No. Hashing runs in your browser, so text and files stay on your device.

How do I verify a download with SHA-256?

Hash the file here, then paste the checksum the publisher gave you into the compare box. A match means the file is identical to the one they hashed.

What is the difference between MD5, SHA-1 and SHA-256?

They are different algorithms with different output lengths: 128, 160 and 256 bits. MD5 and SHA-1 are broken against deliberate attacks, while SHA-256 is currently considered secure.

Is MD5 safe?

Not for security. It is still used to detect accidental corruption and for non-security IDs, but attackers can create two different files with the same MD5.

Can a hash be reversed?

No. A hash is one-way. People recover simple inputs by guessing and comparing hashes, which is why short or common values are not safe to hash alone.

Is hashing the same as encryption?

No. Encryption can be undone with a key. A hash cannot be undone and has no key. Use the Text Encryption tool on this site when you need to get the data back.

Should I hash passwords with SHA-256?

No. Fast hashes make guessing cheap. Use a slow, salted password hash such as Argon2id, scrypt or bcrypt.

What is HMAC?

HMAC mixes a secret key into the hash so that only someone with the key can create or check it. It is used to sign messages and API requests.

Why does my hash not match?

Common causes are a different algorithm, a hidden line break or space at the end of the text, different text encoding, a different case, or a file that was changed or damaged.

Does a line break change the hash?

Yes. Hello and Hello followed by a new line have different hashes. Use the option to ignore one line break at the end to match tools that add or remove it.

What is CRC32?

A short checksum that detects accidental errors, such as in ZIP files. It is not secure and many different inputs share the same value.

How big a file can I hash?

Files up to 1 GB, depending on your device memory. For larger files use a command-line tool such as sha256sum.

Can I hash hex or Base64 data?

Yes. Switch the input type to Hex or Base64 and the tool hashes the raw bytes.

What does the Download results file contain?

One line per hash in the form hash, two spaces, name, and the algorithm in brackets. The print summary lists the same results.

Is this hash generator free?

Yes. It is free online with no sign-up and no limits.

Sources and further reading

Sources were consulted in October 2026. Standards and rules can change, so always check the official page for your situation.

Disclaimer: This free hash generator runs in your browser, so text and files are not uploaded. MD5, SHA-1 and CRC32 are fine for catching accidental changes but are not safe against deliberate tampering or for storing passwords. Use SHA-256 or stronger to check downloads, and a slow password hash such as Argon2 or bcrypt for passwords. A matching hash proves the file is identical to the one that was hashed, and it is only as trustworthy as the place you got the expected hash from.