Hash Generator

Use this hash generator to calculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 fingerprints of text or a file — locally in your browser, so private files stay private.

1Type text, or pick a file
2All five hashes are calculated instantly
3Copy the hash you need

0 characters in

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this hash generator

Type or paste text and all five hashes update as you type — there is no button to press. To hash a file instead, use the file picker: the browser reads the file on your device and hashes those bytes, which is exactly how you verify a download against a publisher's published checksum. Compare character by character, or better, compare the first and last ten characters and the total length: a real match must agree on all of them. Each hash has its own copy button so you can lift exactly the one a system is asking for.

The SHA family is calculated by your browser's built-in Web Crypto API — the same audited code your browser uses for secure connections. MD5 is not part of Web Crypto (it was dropped for being insecure), so this page carries a small implementation of the original RFC 1321 algorithm for checksum and compatibility work. Both routes run entirely on your device: hashing a confidential document here sends it nowhere, which is more than can be said for most online hash tools.

Example: the hashes of “abc”

The three letters abc — the classic test input — produce these fingerprints (you can confirm them in the tool above, which starts with this exact example):

AlgorithmHash of “abc”
MD5900150983cd24fb0d6963f7d28e17f72
SHA-1a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-512ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f

Now delete the “c” and watch every value change beyond recognition — that total sensitivity to the smallest edit is the avalanche effect, and it is why a matching hash is such strong evidence that two files are identical.

What hashes are actually for

The everyday job is integrity checking: a publisher lists a SHA-256 next to a download, you hash your copy, and if the strings match, the file arrived bit-for-bit intact and untampered. The same idea fingerprints documents in evidence handling, deduplicates files in storage systems, and names content in systems like Git, where every commit and file is identified by its hash. Hashes also sit inside digital signatures and TLS certificates — always the modern SHA-2 family in those roles.

Two warnings belong on every hash page. First, hashing is not encryption: a hash of a short, guessable string (a PIN, a common password) can be reversed by simply hashing guesses until one matches, so never treat a bare hash as protection for secrets. Second, MD5 and SHA-1 are broken for security: both have known collision attacks, meaning two different files can be crafted with the same hash. Use them here for what they are still good at — quick accidental-corruption checks and talking to older systems — and SHA-256 for anything that matters.

Hashes inside the systems you already use

Once you start noticing hashes, they are everywhere. Git names every commit and every file version by a hash of its contents, which is why changing one line of history changes every commit ID after it. Download pages publish SHA-256 checksums next to installers so users can prove a file was not altered in transit or on a mirror. Digital signatures do not sign whole documents — they sign a hash of the document, which is faster and just as binding, because a different document with the same hash is computationally out of reach for SHA-256. Password storage is the one place a bare hash from this page must never be used: passwords are few and guessable, so proper systems use slow, salted algorithms (bcrypt, scrypt or Argon2) that make trying billions of guesses expensive. And HMAC extends hashing with a secret key to produce message authentication codes — the mechanism that signs API requests and, under the hood, the HS256 signature in a JWT. In each case the pattern is identical: the hash stands in for the data, small enough to compare, sign or store, and sensitive enough that any change shows.

Frequently asked questions

What is a hash?

A hash is a fixed-length fingerprint of data, produced by a one-way function. The same input always gives the same hash, changing even one character gives a completely different hash, and the original data cannot be reconstructed from the hash alone.

Which hash should I use?

For verifying downloads and file integrity, SHA-256 is the current standard and the best default. SHA-512 suits systems that ask for it specifically. MD5 and SHA-1 are fine for spotting accidental corruption and for legacy checksums, but both are broken for security purposes and must never protect passwords or signatures.

Is MD5 safe?

Not for security. Researchers can deliberately craft two different files with the same MD5 hash, so MD5 cannot prove a file is genuine. It remains useful as a quick checksum against accidental damage — a corrupted download will essentially never produce the same MD5 by chance — and for compatibility with older systems.

Can a hash be reversed or decrypted?

No. Hashing is not encryption: there is no key and no reverse operation. The only way to 'reverse' a hash of a short, guessable input is to try hashing candidate inputs until one matches — which is exactly why passwords must be long, unique and stored with a dedicated password-hashing algorithm instead.

Why does the hash change completely when I edit one letter?

That is the avalanche effect, a design goal of every cryptographic hash: flipping a single input bit should flip about half of the output bits. It is what makes hashes useful as fingerprints — two nearly identical files have unrelated hashes, so any change is obvious.

Is my file uploaded to a server?

No. Files are read by your browser on your device and hashed locally with the Web Crypto API and the tool's own MD5 code. Nothing is uploaded, stored or logged — you can disconnect from the internet after the page loads and hashing still works.

How do I verify a download with this tool?

Choose the file with the file picker and compare the SHA-256 shown here with the checksum the publisher lists on their download page. If the two strings match exactly, the file is bit-for-bit what the publisher released. If they differ at all, delete the download and get it again from the official source.

Why is my text hash different from another website's?

Almost always a character-encoding or whitespace difference: a trailing newline, a space at the end, or text hashed as Latin-1 instead of UTF-8. This tool hashes the UTF-8 bytes of exactly what you type, which is the convention command-line tools and programming languages use.

How large a file can I hash?

The file picker accepts files up to 10 MB, which covers documents, installers' checksums for small utilities and archives. Very large files — disk images, videos — are better hashed with your operating system's built-in tool, which reads them without loading them into a browser tab.

Related tools