Hash Generator
Free online hash generator: calculate MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA-3, Keccak-256 and CRC32 checksums of text or files at once, and verify a download against its published hash.
| File | – |
|---|---|
| Size | – |
| Time | – |
Paste a checksum from a download page or a sha256sum line. Case, spaces and prefixes such as sha256= are ignored, and hex or Base64 both work.
| MD5128-bit · broken | | |
|---|---|---|
| SHA-1160-bit · broken | | |
| SHA-256256-bit · secure | | |
| SHA-384384-bit · secure | | |
| SHA-512512-bit · secure | | |
| SHA3-256256-bit · secure | | |
| SHA3-512512-bit · secure | | |
| Keccak-256256-bit · Ethereum | | |
| CRC3232-bit · checksum | |
MD5 and SHA-1 are broken for security. Collisions can be produced on purpose, so use them only as checksums against accidental corruption. For signatures, integrity checks against attackers and new systems, use SHA-256 or stronger. Never store passwords with any of these fast hashes.
Hashing runs in your browser: SHA-1 and SHA-2 of text use the Web Crypto API, the other algorithms and file streaming use the open-source hash-wasm library. Your text and files never leave your device.
Every Common Hash of Your Text or File at Once
A cryptographic hash turns any input, from one character to a multi-gigabyte disk image, into a short fixed-length fingerprint. The same input always gives the same digest, and changing a single bit changes about half of the output bits. That makes hashes the standard way to check downloads, deduplicate files, build cache keys and detect tampering.
This tool computes nine digests in one pass, so you do not need to know in advance which one a website published. Paste the expected value into the compare box and the matching algorithm is highlighted. Large files are streamed in chunks, so they do not have to fit in memory, and nothing is uploaded.
How to generate a hash
- Choose Text or File. Type or paste text, or drop a file of any size onto the file area.
- Pick the input encoding for text. UTF-8 hashes the characters as typed. Choose Hex or Base64 when the input is binary data written as text, for example a key or a digest you want to hash again.
- Read the digests. MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, Keccak-256 and CRC32 appear together and update as you type. Switch the output between lowercase hex, uppercase hex and Base64.
- Verify a checksum. Paste the published value into Compare with an expected hash. A green badge names the algorithm that matches and the row is highlighted. If nothing matches, the tool tells you which algorithms have a digest of that length.
Hash algorithms compared
All output lengths are fixed: the size of the input does not change the size of the digest. Base64 lengths include the = padding.
| Algorithm | Digest size | Hex chars | Base64 chars | Status and typical use |
|---|---|---|---|---|
| MD5 | 128 bits (16 bytes) | 32 | 24 | Broken: practical collisions since 2004. Legacy checksums, non-security cache keys. |
| SHA-1 | 160 bits (20 bytes) | 40 | 28 | Broken: public collision in 2017 (SHAttered). Old Git object IDs, legacy systems. |
| SHA-256 | 256 bits (32 bytes) | 64 | 44 | Secure. Download checksums, TLS certificates, Bitcoin, code signing. |
| SHA-384 | 384 bits (48 bytes) | 96 | 64 | Secure. Subresource Integrity, TLS cipher suites. |
| SHA-512 | 512 bits (64 bytes) | 128 | 88 | Secure. Often faster than SHA-256 on 64-bit CPUs without SHA extensions. |
| SHA3-256 | 256 bits (32 bytes) | 64 | 44 | Secure. FIPS 202 (2015), a different design (Keccak sponge) from SHA-2. |
| SHA3-512 | 512 bits (64 bytes) | 128 | 88 | Secure. Same family as SHA3-256 with a larger output. |
| Keccak-256 | 256 bits (32 bytes) | 64 | 44 | Original Keccak padding, used by Ethereum. Not equal to SHA3-256. |
| CRC32 | 32 bits (4 bytes) | 8 | 8 | Not cryptographic. Detects accidental errors in ZIP, PNG and Ethernet. |
Example: the SHA-256 digest of the three characters abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, and the SHA-256 of empty input is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. You can paste abc above to check.
How hashing works and why the same text can give different hashes
A hash function processes input in fixed-size blocks (512 bits for MD5, SHA-1 and SHA-256, 1024 bits for SHA-384 and SHA-512) and mixes each block into an internal state. SHA-3 uses a sponge construction instead: it absorbs input into a 1600-bit state and squeezes the digest out. Either way the function is one-way: you cannot compute the input from the digest, only guess inputs and compare.
Hashes work on bytes, not characters, so the same visible text can produce different digests:
- Encoding:
éis two bytes in UTF-8 but one byte in Latin-1. This tool hashes text as UTF-8, like most programming languages and command-line tools on Linux and macOS. - Line endings and trailing newlines:
echo "abc" | sha256sumhashesabcplus a newline. Useprintf "abc"orecho -nto match the result shown here. Windows files may contain CRLF line endings. - Hex input: the text
616263hashed as UTF-8 is six characters; hashed as Hex bytes it isabc. - Unicode normalisation: an accented letter can be one code point or a letter plus a combining mark. They look identical but hash differently.
Verifying downloads and choosing an algorithm
- Check a download: drop the file, paste the SHA-256 value from the vendor's site and look for the green badge. Get the checksum over HTTPS from the official site; a checksum hosted next to a tampered file proves nothing, which is why projects also sign releases.
- Command-line equivalents:
sha256sum fileon Linux,shasum -a 256 fileon macOS andGet-FileHash file -Algorithm SHA256in PowerShell give the same hex digest. - New systems: use SHA-256 by default, SHA-384 or SHA-512 when a standard asks for it, and SHA-3 when you want a design independent of SHA-2.
- Passwords: never store plain or salted SHA hashes; they are designed to be fast, so attackers can test billions of guesses per second on a GPU. Use a slow password hash such as bcrypt, scrypt or Argon2; the bcrypt generator shows how bcrypt hashes look.
- Authenticating messages: a plain hash proves nothing about who sent data, because anyone can recompute it. Use a keyed hash with the HMAC generator, or encrypt data with the AES encryption tool.
Frequently Asked Questions
Common questions about hash functions, checksums and this hash generator.
It runs a hash function over your text or file and shows the fixed-length digest, usually written in hex. The same input always gives the same digest, so comparing digests is a quick way to tell whether two inputs are identical.
No. Hashing is one-way and is not encryption. Sites that claim to reverse MD5 or SHA-1 only look up digests of common words and leaked passwords in large precomputed tables. A long random input cannot be recovered.
Not for security. Attackers can create two different files with the same MD5 or SHA-1 digest. They are still fine for detecting accidental corruption, for example in old checksum lists, but use SHA-256 or SHA-3 for anything an attacker could target.
Usually because of a trailing newline (echo adds one, printf does not), a different text encoding, or Windows CRLF line endings. Hash the file itself, or make sure the exact same bytes are hashed in both places.
Both produce 256-bit digests, but they use completely different designs: SHA-256 is a Merkle–Damgård construction from the SHA-2 family, SHA3-256 is a Keccak sponge standardised in FIPS 202. Their outputs for the same input are unrelated.
Ethereum adopted Keccak before NIST finished SHA-3. The final standard changed the padding byte, so Keccak-256 and SHA3-256 give different digests for the same input even though the core permutation is the same.
Yes. Files are read in 4 MB chunks and fed to all nine algorithms at once, so a multi-gigabyte file does not need to fit in memory. Speed depends on your device; a progress bar shows how far it has got.
No. All hashing runs in JavaScript and WebAssembly inside your browser. The page only downloads the open-source hash-wasm library; your input is never sent anywhere.