Skip to main content

Hash Generator

Generate MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512 hashes at once.

MD5
SHA-1
SHA-256
SHA-384
SHA-512

Online hash generator

A hash turns data of any length into a fixed-length "fingerprint", commonly used for file integrity checks, password storage and digital signatures. This hash generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once — the SHA family via the browser-native Web Crypto API and MD5 in pure JavaScript, all locally in your browser with nothing uploaded.

How to use

  1. Paste text into the input box.
  2. Choose the hash algorithm (SHA-256 or higher recommended).
  3. Click Generate to get the hex hash, which you can copy in one click.

Common use cases

  • Verify a downloaded file is intact and untampered.
  • Check whether two pieces of content are identical.
  • Learn and test hash algorithms.

Note: in practice, storing passwords should not use a plain hash — combine a salt with a purpose-built algorithm like bcrypt or Argon2.

A hash is for comparison, not encryption

The most concrete use is verifying downloads. You grab an installer or an ISO from an official site, which usually publishes an MD5 or SHA-256 value alongside it. Hash the file you downloaded, compare it character by character with the published one, and a match tells you the file wasn't tampered with or cut off mid-download. Two misconceptions are worth clearing up:

  • A hash isn't encryption, and it can't be reversed. It's a one-way fingerprint — there's no way to "decode" it back to the original. Sites that claim to "crack" MD5 are just looking answers up in a dictionary.
  • Don't store passwords as plain MD5/SHA. They're fast by design — great for checksums, poor against brute force. For passwords use a salted, deliberately slow hash like bcrypt or argon2.

How do you confirm the hashes on this page are correct?

Use an input anyone can look up. The MD5 of hello is 5d41402abc4b2a76b9719d911017c592 and its SHA-256 is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824, both of which you can verify with echo -n hello | md5sum on your own machine. Now change one character: Hello hashes to 8b1a9953c4611296a827abf8c47804d7, sharing nothing with the first. That is the avalanche property, and it is why a mismatched checksum is usually one stray space or newline rather than a corrupted file — hello with a trailing space gives f814893777bcc2295fff05f00e508da6.

What a hash protects — and what it does not

Direction
one-way: the digest cannot be turned back into the input
Same input
always the same digest — that is the point, and also the weakness
Where it runs
in your browser: SHA via the Web Crypto API, MD5 via a JavaScript library

A hash is not encryption and it is not a way to store passwords. Because the same input always produces the same digest, the SHA-256 of a common password is already sitting in public lookup tables — hashing on its own protects nothing. Real password storage needs a per-user salt and a deliberately slow algorithm such as bcrypt or Argon2. Use the digests here for what they are good at: checking that a file or a string arrived unchanged.

One word, three fingerprints

The word <code>hello</code> hashed with three algorithms.

Input
hello
Output
MD5      5d41402abc4b2a76b9719d911017c592
SHA-1    aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-256  2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Every hash is a fixed length regardless of input — 32, 40 and 64 hex characters here. You can verify these outside this site: echo -n hello | md5sum gives the same 32 characters, which is precisely why MD5 is unsafe for passwords.

Frequently Asked Questions

Is MD5 safe to use, and when?
MD5 is cryptographically broken and must never be used for passwords or digital signatures. But it is still widely used for file checksums and legacy compatibility, so it is included here — reach for SHA-256 or higher whenever security matters.
Can a hash be reversed to the original?
No. Hashing is a one-way function — you cannot recover the input from the output, which is exactly why it is used for password storage and integrity checks.
Does the same input always give the same hash?
Yes. The same input with the same algorithm always produces the same hash; changing a single character changes the result completely.
Is my input safe?
Yes. Computation uses the browser-native Web Crypto API and runs locally; your input is never uploaded.

Related reading

Is MD5 Still Safe? MD5 vs. SHA-256 vs. SHA-512 Explained →

Embed this tool

Add this tool to your own website or blog for free — just copy and paste the code below (it includes a link back to this site).