Hash Generator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free hash generator. Get the MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 of text or a file, and check a download against its checksum.

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the hash generator

Type or paste text, or choose a file (up to 200 MB). The hash generator calculates six hashes at once:

  • MD5
  • SHA-1
  • SHA-256
  • SHA-384
  • SHA-512
  • CRC32

Each has a Copy button. Choose lower-case or upper-case letters to match the format you need.

To verify a download, paste the checksum published by the website into "Compare with a checksum". The tool tells you which hash it matches, or warns you if it doesn't match any of them, which means the file is different from the one the publisher hashed.

Hashes are calculated in your browser: MD5 and CRC32 with built-in code, and SHA hashes with your browser's Web Crypto. Your text and files are never uploaded, so you can safely hash private files.

What a hash is

A hash function turns any amount of data (a word, a document, a 2 GB video) into a short, fixed-length string called a hash, digest or checksum. For example, the SHA-256 hash of hello is:

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Good hash functions have three key properties:

  • Deterministic: the same input always gives the same hash.
  • Avalanche effect: changing a single character changes the hash completely. Hello (with a capital H) has a totally different SHA-256 hash.
  • One-way: you can't work out the input from the hash.

That makes hashes ideal for checking whether two things are identical without comparing them byte by byte.

The algorithms

Algorithm Length Use today
MD5 128 bits (32 hex characters) Checksums and duplicate detection only; broken for security
SHA-1 160 bits (40 hex) Legacy systems such as older Git repositories; broken for security
SHA-256 256 bits (64 hex) The standard choice: checksums, signatures, certificates
SHA-384 384 bits (96 hex) Higher-security uses, TLS
SHA-512 512 bits (128 hex) Higher-security uses; fast on 64-bit computers
CRC32 32 bits (8 hex) Error detection in ZIP files, network data

MD5 and SHA-1 are broken for security

Researchers can create two different files with the same MD5 hash (a "collision") in seconds, and SHA-1 collisions have been demonstrated too. That means they mustn't be used for anything where an attacker could benefit from a collision, such as digital signatures or certificates. They're still fine for spotting accidental corruption and duplicate files. For anything security-related, use SHA-256 or stronger.

CRC32 is for errors, not security

CRC32 is a checksum designed to catch accidental changes, such as a flipped bit during transfer. It's fast but easy to fake on purpose, so use it only for error detection.

Verifying a download

Software publishers often list a SHA-256 checksum next to a download. To check that your copy is complete and genuine:

  1. Download the file and copy the checksum from the publisher's site.
  2. Choose the file in the hash generator.
  3. Paste the checksum into "Compare with a checksum".
  4. Look for "Match". If it doesn't match, delete the file and download it again from the official source.

A match proves your file is identical to the one the publisher hashed. It only proves the file is genuine if the checksum itself came from a trusted source, such as the official website over HTTPS.

Other uses for hashes

  • Finding duplicate files: identical files have identical hashes, even with different names.
  • Detecting changes: store a hash of a file and compare it later to see if anything changed.
  • Cache keys and ETags: web servers use hashes to tell browsers whether a file has changed.
  • Data integrity: confirming backups and copies are complete.
  • Git identifies every commit and file by its hash.
  • Subresource Integrity (SRI): a SHA-384 hash in a <script> tag makes the browser refuse a changed file.

Hashing passwords: use a proper password hash

Don't store passwords as plain MD5 or SHA-256 hashes. These are designed to be fast, which makes them fast to crack: attackers can test billions of guesses a second. Passwords need slow, salted algorithms built for the job, such as Argon2, bcrypt or scrypt, which your framework should provide. The hash generator is for checksums and learning, not for storing passwords. For strong passwords themselves, use the password generator.

Text encoding matters

Hashes work on bytes, not characters, so the same text in a different encoding gives a different hash. The hash generator encodes text as UTF-8, which is what almost every modern system uses. If your hash doesn't match one made elsewhere, check for:

  • a trailing line break (many command-line tools add one when you echo text),
  • different line endings (Windows \r\n vs Unix \n),
  • a different encoding, such as UTF-16.

Hashes on the command line

  • macOS and Linux: shasum -a 256 file.zip or sha256sum file.zip; md5 file.zip or md5sum file.zip.
  • Windows PowerShell: Get-FileHash file.zip -Algorithm SHA256.
  • Windows Command Prompt: certutil -hashfile file.zip SHA256.

The hash generator gives the same results without opening a terminal.

Hashes, encoding and encryption: what's the difference?

These three are often confused:

  • Hashing turns data into a fixed-length fingerprint. It's one-way: you can't get the data back. Used to check data hasn't changed.
  • Encoding (such as Base64 or URL encoding) changes the format of data so it can travel safely. It's reversible by anyone: there's no key.
  • Encryption scrambles data with a key, so only someone with the key can read it. It's reversible, but only with the key.

A hash generator does the first. If you need to hide data, you need encryption, not hashing or encoding.

HMAC: hashes with a key

An HMAC (hash-based message authentication code) combines a hash function with a secret key. It proves both that a message hasn't changed and that it came from someone who knows the key. Webhooks from payment providers and many APIs sign their messages with HMAC-SHA256, and HS256 JSON Web Tokens use it too; the JWT decoder can verify those signatures.

Large files

The hash generator reads the whole file into your browser's memory to hash it, so it's limited to 200 MB. Hashing a large file may take a few seconds on an older device. For very large files, such as disk images, use the command-line tools listed above, which read files in pieces.

Why do my hashes differ from another tool's?

If the hash of a file matches elsewhere but the hash of typed text doesn't, the difference is almost always a hidden character: a line break at the end, a space, or Windows line endings. Hashes are completely different for even one changed byte, so check the exact input. Upper and lower case in the hash itself doesn't matter: hex hashes are case-insensitive, and the compare box ignores case.

Hash lengths at a glance

MD5 hashes are 32 hex characters long, SHA-1 40, SHA-256 64, SHA-384 96 and SHA-512 128. If you have a checksum and don't know which algorithm made it, its length usually tells you; the compare box checks all of them at once anyway.

A worked example

A bakery's bookkeeper downloads accounting software, and the publisher's website lists a SHA-256 checksum for the installer. Before installing it on the shop's computer, the bookkeeper chooses the 140 MB installer in the hash generator and pastes the published checksum into "Compare with a checksum". The result: "Match: it's the SHA-256 hash." The installer is exactly what the publisher released, with nothing corrupted or swapped on the way, and it never left the computer to be checked.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Frequently asked questions

How do I generate a SHA-256 hash?

Type text or choose a file in the hash generator. The SHA-256 hash appears instantly, with MD5, SHA-1, SHA-384, SHA-512 and CRC32.

How do I check a file's checksum?

Choose the file, paste the published checksum into "Compare with a checksum", and look for a match.

Is MD5 secure?

No. MD5 collisions are easy to create, so don't use it for security. It's still fine for detecting accidental changes and duplicates.

Can a hash be reversed?

No. Hash functions are one-way. Short, common inputs can sometimes be guessed by trying many possibilities, which is why passwords need special slow hashes.

Are my files uploaded?

No. Files are read and hashed entirely in your browser.

Is the hash generator free?

Yes. It's free with no sign-up, and it works entirely in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep