Skip to content

↑↓ navigate ↵ open Esc close Search runs locally

Hash Generator: MD5, SHA-256, SHA-3, BLAKE3 & More

Hash text or files with up to 14 algorithms at once, from MD5 and SHA-256 to SHA-3, Keccak-256, BLAKE3 and CRC32. Paste an expected checksum to verify a download in one step.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
Algorithms
0 BUTF-8
Hashes

    Runs in your browser. Files are never uploaded. Tip: drop a file to verify a download

    How to use the Hash generator tool#

    1. Pick the algorithms you need in the bar at the top. Selected ones are dark.
    2. Type or paste text, or drop a file onto the left box. Text is hashed as UTF-8, and files are read in pieces so even large downloads work.
    3. Copy a single hash, or use Copy all for a list with the algorithm names.
    4. To verify a download, paste the checksum from the website into Compare with a checksum: a green row means the file is identical.

    Examples#

    Hash a word

    Input
    hello
    Output
    MD5: 5d41402abc4b2a76b9719d911017c592
    SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

    Every algorithm gives a different, fixed-length fingerprint of the same input.

    One character changes everything

    Input
    Hello
    Output
    MD5: 8b1a9953c4611296a827abf8c47804d7

    Only the first letter changed (h → H), yet the hash is completely different. This is the "avalanche effect".

    Verify against a checksum

    Input
    The quick brown fox jumps over the lazy dog
    Output
    ✓ Matches SHA-256

    The expected value is pasted into Compare; the SHA-256 row turns green.

    What is a hash?#

    A hash function turns any input, from one word to a whole file, into a short fixed-length fingerprint. The same input always gives the same hash, the smallest change gives a completely different one, and there is no way to turn the hash back into the input. That makes hashes ideal for checking that data has not changed: if two files have the same SHA-256 hash, they are identical.

    Hashing is not encryption. Encryption is reversible with a key; a hash is a one-way fingerprint with no key at all.

    Which hash algorithm should I use?#

    AlgorithmOutputStatusTypical use
    MD5128 bits, 32 hexBroken for securityNon-security checksums, cache keys, ETags
    SHA-1160 bits, 40 hexBroken (collisions since 2017)Legacy systems, older Git repositories
    SHA-224 / SHA-384224 / 384 bitsSecureTruncated SHA-2 variants for specific protocols
    SHA-256256 bits, 64 hexSecureFile checksums, certificates, Bitcoin, signatures
    SHA-512512 bits, 128 hexSecureSignatures, fast on 64-bit CPUs
    SHA3-256 / SHA3-512256 / 512 bitsSecureModern alternative to SHA-2, different design
    Keccak-256256 bitsSecureEthereum addresses and smart contracts
    RIPEMD-160160 bitsLegacyBitcoin addresses (after SHA-256)
    BLAKE2b / BLAKE2s512 / 256 bitsSecureFast hashing in software, libsodium, Argon2
    BLAKE3256 bitsSecureVery fast file hashing
    CRC3232 bits, 8 hexNot a security hashError detection in ZIP, gzip, PNG, Ethernet

    For anything security-related, choose SHA-256 or newer. MD5 and SHA-1 are still fine for spotting accidental corruption, but anyone can create two different files with the same MD5 or SHA-1 hash.

    SHA-3 vs Keccak-256#

    Keccak won the SHA-3 competition in 2012, but the final SHA-3 standard (FIPS 202, 2015) changed the padding. Ethereum had already adopted the original version, so Keccak-256 and SHA3-256 give different results for the same input. Use Keccak-256 for anything Ethereum, and SHA3-256 everywhere else.

    How to verify a file checksum#

    1. Copy the checksum published next to the download (usually SHA-256).
    2. Drop the downloaded file into the tool and paste the checksum into Compare with a checksum.
    3. A green row means the file is exactly what the publisher released. A mismatch means the download is corrupted or has been changed.

    The same check on the command line:

    bash
    # Linuxsha256sum ubuntu.iso # macOSshasum -a 256 ubuntu.iso # Windows PowerShellGet-FileHash .\ubuntu.iso -Algorithm SHA256

    Do not store passwords with these hashes. MD5, SHA-1 and even SHA-256 are designed to be fast, so attackers can try billions of guesses per second. Passwords need a slow, salted password hash such as bcrypt or Argon2.

    Hashing in code#

    JavaScript (browser)#

    javascript
    async function sha256(text) {  const bytes = new TextEncoder().encode(text);  const hash = await crypto.subtle.digest('SHA-256', bytes);  return [...new Uint8Array(hash)].map((b) => b.toString(16).padStart(2, '0')).join('');}

    Node.js#

    javascript
    import { createHash } from 'node:crypto'; createHash('sha256').update('hello').digest('hex');createHash('md5').update('hello').digest('hex');

    PHP#

    php
    hash('sha256', 'hello');hash('sha3-256', 'hello');hash_file('sha256', 'download.zip');   // hash a file

    Python#

    python
    import hashlib hashlib.sha256(b'hello').hexdigest()hashlib.sha3_256(b'hello').hexdigest()hashlib.blake2b(b'hello').hexdigest()

    Common errors and fixes#

    • My hash is different from the one another tool gives

      The input is not exactly the same. Look for a trailing newline (echo adds one: use echo -n), spaces, or a different text encoding. This tool hashes exactly what is in the box, as UTF-8.

    • The checksum does not match my download

      Check that you compare the same algorithm (a 64-character value is usually SHA-256). If it still does not match, download the file again: it may be incomplete or corrupted.

    • SHA3-256 does not match an Ethereum hash

      Ethereum uses Keccak-256, the pre-standard version of SHA-3. Select Keccak-256 instead.

    • Uppercase vs lowercase hashes

      Hex hashes are not case-sensitive: 5D41… and 5d41… are the same. The compare box ignores case. Tick Uppercase for capital letters.

    Frequently asked questions#

    Can a hash be decrypted?

    No. Hash functions are one-way: they throw information away, so the input cannot be calculated from the hash. "Decrypting" sites only look up hashes of common words they have stored before.

    Which hash should I use for file checksums?

    SHA-256 is the standard choice and what most download pages publish. BLAKE3 is much faster for very large files. MD5 still detects accidental corruption but not deliberate tampering.

    Why do the hashes of "hello" and "Hello" look completely different?

    Good hash functions have the avalanche effect: changing one bit of the input changes about half of the output bits, so similar inputs give unrelated-looking hashes.

    Is it safe to hash a private file here?

    Yes. Files are read and hashed inside your browser and are never uploaded. You can confirm it in the Network tab of your browser's developer tools.

    How large a file can I hash?

    Up to 1 GB. The file is read in 4 MB pieces with a progress bar, so the page stays responsive.

    Your next tool is one search away.

    Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.

    Browse all tools

    Tip: press Ctrl D to bookmark dev247.