⚡ BreezyTools Pro — Ad-free experience across all 200+ tools. Less than a coffee a month → Learn More

Hash Generator

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes for text or files instantly.

Files are processed in your browser. No data is sent to servers.

—
—
—
—

Hash Comparison

Compare two hashes to verify authenticity or check for duplicates.

—

What This Hash Generator Does

This hash generator calculates MD5, SHA-1, SHA-256 and SHA-512 digests of text or of a file you choose. Use it to check a download against the checksum its publisher lists, confirm that two files are identical, create a fingerprint for a piece of content, or see how a hash changes when the input changes by a single character. Hashing runs in your browser: SHA values come from the built-in Web Crypto API, MD5 is computed by JavaScript on the page (Web Crypto does not offer MD5), and neither your text nor your files are uploaded.

How to Use the Hash Generator

  1. Type or paste into Text Input. All four results update as you type. Text is encoded as UTF-8 before hashing, which matches what most programming languages and command-line tools do, so "héllo" is hashed as 6 bytes, not 5.
  2. Or pick a file under Or Upload a File. The tool hashes the file's raw bytes with all four algorithms. A line above the results tells you whether they belong to the text or to the file, whichever you changed last.
  3. Tick Uppercase Output if you need capital hex letters. It only reformats the results shown; hex is case-insensitive, so both forms represent the same hash.
  4. Click Copy next to any result, or use the Export menu to save all results as CSV, Excel or PDF.
  5. To check two values against each other, paste them into Hash 1 and Hash 2 under Hash Comparison. The comparison ignores letter case and leading or trailing spaces.

Supported Algorithms

AlgorithmOutputHex lengthCollision resistance
MD5128 bits32 charactersBroken
SHA-1160 bits40 charactersBroken
SHA-256256 bits64 charactersNo practical attack known
SHA-512512 bits128 charactersNo practical attack known

A hash function always gives the same output for the same input, and even a one-character change produces a completely different result. Here are SHA-256 values for three nearly identical inputs:

hello            2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Hello            185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
hello + newline  5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03

The MD5 values of the same three inputs are 5d41402abc4b2a76b9719d911017c592, 8b1a9953c4611296a827abf8c47804d7 and b1946ac92492d2347c6235b4d2611184.

If the MD5 field shows d41d8cd98f00b204e9800998ecf8427e and the SHA-256 field shows e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, you hashed an empty input. You will see these after clearing the text box.

How to Verify a Downloaded File

  1. Find the checksum on the publisher's download page, usually labeled SHA-256.
  2. Choose the downloaded file under Or Upload a File and copy the SHA-256 result.
  3. Paste your result into Hash 1 and the published value into Hash 2. If they match, the file arrived intact.

On the command line, the same check is shasum -a 256 file on macOS, sha256sum file on Linux, and Get-FileHash file in Windows PowerShell. If a site only lists an MD5 checksum, compare the MD5 result instead (md5 file on macOS, md5sum file on Linux). A matching checksum proves the file was not corrupted in transit. It does not prove who made the file if an attacker could change both the download and the published hash, which is why many projects also sign their releases.

Security: What Hashes Are and Aren't Good For

  • MD5 and SHA-1 are broken for collision resistance. Researchers can create two different inputs with the same MD5 hash in seconds, and a practical SHA-1 collision was published in 2017. Do not rely on either for digital signatures, certificates, or any check an attacker could try to fool. They are still fine for spotting accidental corruption or finding duplicate files.
  • Never store passwords as plain hashes. SHA-256 is designed to be fast, so a single GPU can try billions of guesses per second, and unsalted hashes of common passwords can be looked up in precomputed tables. Use a password hashing function such as Argon2id, scrypt or bcrypt (or PBKDF2 where compliance requires it), which adds a unique salt and is deliberately slow. Then make the passwords themselves strong with the password generator, and test existing ones with the password strength checker.
  • A hash is not a signature or a MAC. Anyone can recompute a hash after changing the data. To prove a message came from someone holding a secret key, use HMAC or a digital signature; this tool does not calculate either.

Why Your Hash Might Not Match

  • A trailing newline. echo "hello" | sha256sum hashes "hello" plus a line break. Use printf '%s' hello or echo -n to match the text box.
  • Line endings. The text box uses LF line breaks. A file saved with Windows CRLF line endings hashes differently, so upload the file itself instead of pasting its contents.
  • Invisible characters. Extra spaces, tabs, or a byte order mark at the start of a file all change the result.
  • A different algorithm. Check the length: 32 hex characters means MD5, 40 means SHA-1, 64 means SHA-256, 128 means SHA-512.

Frequently Asked Questions

Is my data sent to a server?
No. Text and files are hashed by your browser. The SHA hashes use the Web Crypto API, MD5 is computed by JavaScript on the page, and nothing you enter or select is uploaded.
Which hash algorithm should I use?
Use SHA-256 for checksums and content fingerprints unless a system asks for something else. SHA-512 is equally suitable. Use MD5 or SHA-1 only for non-security purposes or to match a legacy system. For passwords, use Argon2id, scrypt or bcrypt instead of any of these.
Can a hash be reversed or decrypted?
No. A hash cannot be turned back into its input. However, short or common inputs can be found by hashing guesses until one matches, which is how "MD5 decrypt" websites work: they look the hash up in a table of known inputs.
Is SHA-256 safe for storing passwords?
Not on its own. It is too fast, which makes guessing attacks cheap. Password storage needs a slow, salted algorithm such as Argon2id, scrypt or bcrypt.
Why doesn't my hash match the one from my terminal?
Usually the inputs differ by a trailing newline, CRLF line endings, or extra whitespace. Upload the file instead of pasting text, or use printf instead of echo when hashing a string on the command line.
Can I hash large files?
Yes, within your device's memory. The whole file is read into memory before hashing, so files of several gigabytes may be slow or fail in some browsers. MD5 runs in JavaScript in small steps so the page stays responsive, which makes it slower than the SHA hashes on big files. For very large files, use sha256sum, shasum or Get-FileHash.
What's the difference between hashing and encryption?
Encryption is reversible by anyone with the key and is used to keep data secret. Hashing is one-way and is used to check that data has not changed.

Love using BreezyTools?

Go Pro for an ad-free experience, priority features, and support independent development — for less than a coffee a month.

Upgrade to Pro →