Skip to main content

Hash generator

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes. Includes hash comparison and HMAC support for API signatures.
Hash calculation
Enter text or upload a file (drag and drop works)

Drag a file here or

0 characters

Hash algorithms compared
AlgorithmLengthSecurityUsed for
MD5128 bitsInsecureChecksums, legacy systems
SHA-1160 bitsDeprecatedGit commits, older signatures
SHA-256256 bitsSecureSSL/TLS, signatures, checksums
SHA-512512 bitsSecureHigh-security applications
HMACvariableUses a keyAPI signatures, webhooks

Generating a hash with MD5, SHA-1, SHA-256 and SHA-512

  1. Stay on the 'Generate' tab.
  2. Enter text or drag a file into the field.
  3. The tool calculates MD5, SHA-1, SHA-256 and SHA-512 in one pass.
  4. Copy the hash you need.

One extra space or a line break at the end changes the hash completely. The tool treats text as UTF-8. For files it works on the raw bytes, so the value matches what a command-line program prints for the same file.

The tool reads the whole file into your browser's memory. For very large files the calculation can therefore take a while.

Checking a download with hash verification

  1. Open the 'Verify' tab.
  2. Paste the hash from the download page into the 'Expected hash' field.
  3. Select the file you downloaded.

You don't have to pick the algorithm. The tool compares your hash with all four calculated values and names the one that matches. If none matches, the file has been changed or damaged, or the download page uses an algorithm the tool doesn't offer.

Comparing hashes and calculating HMAC

On the 'Compare' tab you paste two hashes. Uppercase versus lowercase and spaces don't matter. A prefix such as "sha256:" is removed, and in a line like "hash filename" only the hash counts. The same notations work on the 'Verify' tab.

On the 'HMAC' tab you enter a message and a secret key. The tool returns the HMAC with SHA-256 and with SHA-512. You can use it to check whether a webhook signature is correct, for example. If the message or the key is missing, the tool calculates nothing.

MD5 hashes, SHA-256 hashes and passwords

Don't use MD5 or SHA-1 for passwords, because both are considered insecure. A single SHA-256 hash isn't meant for passwords either. Passwords call for dedicated methods such as bcrypt or Argon2.

For download checksums, SHA-256 is the common choice. MD5 only makes sense if a provider gives you nothing else.

To find out whether two files are identical, compare their SHA-256 hashes. If the values are equal, the files match byte for byte for all practical purposes.

Frequently asked questions

Everything about generating hashes
What is a hash?
A hash is a fingerprint of data. No matter how large the input is, the hash always has a fixed length. Even the smallest change to the input produces a completely different hash.
What is HMAC?
HMAC (hash-based message authentication code) is a hash that uses a secret key. It is used to verify both the integrity and the authenticity of a message, for example in API signatures.
What is the difference between MD5, SHA-256 and SHA-512?
MD5 produces a 128-bit hash (32 characters) but is no longer safe for cryptographic purposes. SHA-256 produces a 256-bit hash (64 characters) and is the current standard. SHA-512 produces a 512-bit hash (128 characters).
What are hashes used for?
Hashes are used for password storage (with dedicated methods such as bcrypt or Argon2), file integrity checks, digital signatures, blockchain technology and data deduplication.
Can a hash be reversed?
No. Hashes are one-way functions, so you can't recover the original data from a hash. Short or common inputs can still be guessed by trial and error. For passwords, use a method such as bcrypt or Argon2 rather than a single SHA-256 hash.
Is MD5 still secure?
MD5 is considered cryptographically broken and should not be used for security applications such as password hashing. It is still acceptable for simple checksums, for example to verify a download.
Is my data stored?
No. All hashing happens locally in your browser, including files. Nothing is sent to a server.
Is there a file size limit?
The tool sets no limit. It does read the whole file into your browser's memory before it calculates, though. Very large files (several gigabytes) make the tab slow or fail. In that case a message says the file couldn't be read or hashed. For files like that, use a program on your computer, such as sha256sum.
Which notations does verification accept?
You can paste a checksum the way the provider lists it. Upper and lower case don't matter, a prefix such as "sha256:" is removed, and for a line in the format "hash filename" only the hash counts. Spaces inside the hash are ignored. This applies to the Verify and Compare tabs.

Related tools

All tools

Changelog

Latest updates and improvements to the Hash generator
v1.4.0

November 20, 2026

Error messages and more flexible checksums

  • • Fixed: when you hashed a new file and reading failed, the hash of the previous file stayed on screen. It is now reset.
  • • Fixed: if reading or calculating a file fails, an error message appears instead of nothing.
  • • New: verification recognizes checksums with a prefix such as "sha256:" and lines in the format "hash filename", and ignores spaces inside the hash.
  • • The FAQ states that there is no size limit but that the whole file is read into memory.
  • • The v1.2.0 entry now correctly says there is no progress display.
v1.3.0

November 17, 2026

Guide and a more precise FAQ

  • • Added a guide with instructions and use cases directly below the tool.
  • • Added related tools at the end of the page.
  • • The FAQ now recommends bcrypt or Argon2 for passwords instead of a single hash, in line with the guide.
v1.2.0

December 28, 2025

Binary file hashing and checksum verification

  • • Added binary file upload for real file hashes.
  • • Added checksum verification against an expected hash.
  • • Added file size and type display.
  • • Added drag and drop support.
  • • Note added on November 20, 2026: there is no progress display. While calculating, the tool only shows the note "Calculating file hashes...".
Show older versions
v1.1.0

December 20, 2025

Hash comparison and HMAC

  • • Added hash comparison for checking file integrity.
  • • Added HMAC support for SHA-256 and SHA-512.
  • • Added a secret key field for API signatures.
  • • Added a visual indicator when hashes match.
v1.0.0

December 17, 2025

Launch

  • • MD5 hash generation.
  • • SHA-256 hash generation.
  • • SHA-512 hash generation.
  • • SHA-1 hash generation.
  • • File hash calculation.
  • • Copy with one click.
  • • Runs entirely in the browser.