Skip to content

Hash Generator

Get the MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256 and CRC32 of any text or file, sign it with a secret key as an HMAC, and check it against the hash you expect. Files are hashed in your browser and never uploaded.

A SHA-256 hash of a word

Before

toolsy

Text you type

After

SHA-256: 78c574ac5a05a31e0e704c53060e1595130e5a7813f4ba68417a859d3303058b

The same text always gives this hash

Input

Text is hashed as UTF-8. Spaces and line breaks change the result.

Verify a hash

Hashes

MD5

-

Checksums only. Broken for security.

SHA-1

-

Legacy. Do not use for new security work.

SHA-256

-

The common default for checksums and signatures.

SHA-384

-

Truncated SHA-512.

SHA-512

-

Longest SHA-2 digest.

SHA3-256

-

Newer Keccak-based standard.

CRC32

-

Quick checksum used by ZIP, PNG and Ethernet. Not for security.

How to generate and verify a hash

  1. Choose Text or File. Type or paste text, or drop a file of up to 200 MB. The file is read by your browser and never uploaded.
  2. All seven appear at once: MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256 and the CRC32 checksum. Tick Uppercase hex if the place you paste into wants capitals.
  3. To check a webhook or API signature, tick Sign with a secret key (HMAC) and type the shared secret. Every hash turns into its HMAC, such as HMAC-SHA-256, ready to compare with the signature header.
  4. To check a download, paste the checksum from the publisher's page into Verify a hash. The tool names the algorithm that matches, or says none does.
  5. Copy any hash with the button beside it. To check a token signed with HS256 or RS256, use JWT Decoder.

Frequently asked questions

What is a hash?

A hash is a fixed-length fingerprint of some data. The same input always gives the same hash, and changing one byte gives a completely different one. SHA-256 always gives 64 hex characters, whether the input is one letter or a 200 MB file.

Sources: NIST, FIPS 180-4: Secure Hash Standard

How do I verify a file checksum?

Drop the file here, paste the checksum from the download page into Verify a hash, and look for Match. No match means the file is damaged, incomplete or not the one the publisher released, so download it again from the official site. Capitals and spaces around the pasted value do not matter.

Can a hash be reversed or decrypted?

No. A hash is not encryption and has no key, so there is nothing to decrypt. Attackers guess instead: they hash huge lists of likely inputs and look for a match, which is why the hash of a short or common password is found quickly.

Is MD5 still safe to use?

Not for security. Two different files can be made with the same MD5, and RFC 6151 says MD5 should not be used where collision resistance matters, such as digital signatures. It still spots accidental corruption. SHA-1 has the same weakness: a real collision was published in 2017, and NIST plans to retire SHA-1 by 31 December 2030.

Sources: IETF, RFC 6151: MD5 security considerations; CWI and Google, SHAttered: the first SHA-1 collision; NIST, Transitioning away from SHA-1

Which hash should I use?

SHA-256, unless something asks for another one. It is the common choice for checksums, software downloads and signatures. SHA-384, SHA-512 and SHA3-256 are also secure. Use MD5 and SHA-1 only to match old checksums.

Can I store passwords as SHA-256 hashes?

No. SHA-256 is built to be fast, and speed helps anyone guessing passwords. Use a slow, salted password hash instead. OWASP recommends Argon2id, with scrypt, bcrypt or PBKDF2 as alternatives.

Sources: OWASP, Password Storage Cheat Sheet

What is an HMAC and when do I need one?

An HMAC is a hash mixed with a secret key, set out in RFC 2104. Only someone with the key can make the same value, so it proves who sent a message and that nobody changed it. Stripe, GitHub, Shopify and many other services sign their webhooks with HMAC-SHA-256 this way. Paste the raw request body as the text, use the signing secret as the key, and compare the result with the signature they send. Some services send it as Base64 rather than hex.

Sources: IETF, RFC 2104: HMAC, keyed hashing for message authentication

What is CRC32 used for?

CRC32 is a short checksum that catches accidental damage, such as a bad download or a flipped bit on a disk. ZIP files and PNG images store a CRC32 for each part. It is not a security hash: anyone can make a different file with the same CRC32 on purpose, so check downloads against SHA-256 when the publisher gives one.

Why does my hash not match another tool?

The input almost always differs by something you cannot see: a trailing space, a final line break, or a Windows line ending instead of a plain one. This tool hashes text as UTF-8, exactly as typed. For files, hash the file itself rather than text copied out of it.