Hash Generator – MD5, SHA-1, SHA-256, SHA-512

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files online. Compare checksums instantly; files are hashed in your browser.

How to generate a hash

  1. Type text, or switch to File and pick a file.
  2. MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes appear at once. Click Copy next to the one you need.
  3. To verify a download, paste the checksum from the publisher's website into the compare box. It tells you whether it matches.

What is a hash?

A cryptographic hash function turns any amount of data into a fixed-length fingerprint. The same input always gives the same hash, and changing even one character gives a completely different one. That makes hashes ideal for checking that files weren't corrupted or tampered with, and for comparing data without storing it.

AlgorithmLengthUse it for
MD5128 bits (32 hex)Quick checksums only; not secure
SHA-1160 bits (40 hex)Legacy systems, Git object ids; not secure
SHA-256256 bits (64 hex)The standard choice: downloads, signatures, blockchains
SHA-384 / SHA-512384 / 512 bitsExtra security margin

Frequently asked questions

Which hash should I use?

For checking that a download isn't corrupted, any of them works. Use the one the publisher lists, usually SHA-256. For signatures and integrity checks, use SHA-256 or SHA-512. To store passwords, don't use a plain hash at all: use a slow password-hashing function such as Argon2id, bcrypt, scrypt or PBKDF2. MD5 and SHA-1 are broken for security and should only be used for checksums.

Can a hash be reversed?

No. A hash is one-way: you can't get the original text back from it. You can only hash a guess and see whether it matches, which is why short or common passwords are easy to crack even when hashed.

Are my files uploaded?

No. Files are read and hashed by your browser, so even large or private files never leave your computer.

Why does the same text give a different hash elsewhere?

Hashes change completely with the smallest difference: a trailing space, a line break, or a different text encoding. This tool hashes text as UTF-8 exactly as typed, without trimming.

Related tools