Knowledge Mark G
Hire Me

Free developer tool

Hash Generator

MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, HMAC signatures, and a checksum compare for downloads.

  • No sign-up
  • Instant results
  • Runs in your browser

Input

Hashed as UTF-8, exactly as typed - a trailing space or newline changes every hash.

HMAC
Verify a checksum

Paste the hash published with a download - a match is highlighted.

Hashes

Hashing…

Verify a download in seconds

Software sites publish a checksum - usually SHA-256 - next to each download so you can confirm the file was not corrupted or tampered with. Choose the downloaded file, paste the published value into the verify box, and the matching hash lights up. Files are hashed on your device and never uploaded, so this works for private files too.

Which algorithm should I use?

SHA-256 is the default for checksums, file integrity and most modern systems. SHA-512 is just as secure and faster on 64-bit machines. MD5 and SHA-1 are broken for security - collisions can be manufactured - but are still used as checksums, which is why they are here. Never use any of these alone to store passwords; use a password hashing function such as bcrypt or Argon2.

HMAC signatures

An HMAC combines a hash with a secret key. Webhooks from Stripe, GitHub and Shopify sign their payloads with HMAC-SHA256 so you can check a request really came from them. Turn on HMAC, enter the secret and paste the exact request body to reproduce the signature they send.

Exactly the same input always gives the same hash - including spaces and line breaks, so a trailing newline changes everything. Encoding rather than hashing? Use Base64 encode / decode, and for new secrets the password generator.

Questions people ask

How do I check a file's SHA-256 checksum?+

Switch to File, choose the file, then paste the published checksum into 'Verify a checksum'. A match is highlighted in green.

Can a hash be decrypted?+

No. A hash is one-way. 'Decoders' only look the hash up in a list of already-hashed common words, which is why short or common inputs can be found and long random ones cannot.

Is MD5 still safe to use?+

Not for security - collisions can be produced deliberately. It is still fine as a quick checksum against accidental corruption, which is how most download pages use it.

Why does my hash not match the one from my code?+

Almost always the input differs: a trailing newline, different line endings, or a different text encoding. This tool hashes exactly what is typed, as UTF-8.

Is there a file size limit?+

Up to 1 GB, because the file is read into memory to hash it in the browser. For larger files use sha256sum on Linux or macOS, or certutil -hashfile on Windows.

Is anything uploaded?+

No. Text and files are hashed with your browser's built-in Web Crypto; nothing leaves your device.