Home/Tools/Developer Tools/Hash Generator

Hash Generator

Developer Tools

Generate MD5, SHA1, SHA256, SHA512 hashes from any text.

โšก Instant๐Ÿ”’ Private, in your browser๐Ÿ†“ Free, no sign-up๐Ÿ‘ฅ For developers
Your data never leaves your browser. We do not store inputs.

What Hash Generator does

The Hash Generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file, and can also produce HMACs with a secret key. Results update as you type, and everything is calculated in your browser, so the text or file is never uploaded.

FV
Reviewed by the FreeToolsVerse team ยท Last updated ยท How we check our tools

Features and benefits

  • Produces MD5, SHA1, SHA256, SHA384, and SHA512 digests from the same input without switching tools
  • Lets you verify a downloaded file or pasted text wasn't altered by comparing hashes
  • Generates a fixed-length fingerprint regardless of input size, useful for deduplication or quick comparisons
  • Instant client-side computation, so nothing you hash is transmitted anywhere
  • Useful for generating consistent lookup keys from arbitrary text without building a hashing library into your own code

How to use Hash Generator

  1. Type or paste text, or choose a file to hash
  2. Read the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 results, which update instantly
  3. Tick "HMAC with a secret key" and enter a key if you need a keyed hash
  4. Copy the hash you need with its Copy button

Who should use it

Made for developers. Typical uses:

  • Verifying file integrity with hash checksums
  • Storing passwords securely with hashing
  • Generating unique identifiers from text data

Example

Generating a SHA-256 hash for the string "invoice-2024-001" produces a fixed 64-character hexadecimal fingerprint. Changing just one character โ€” to "invoice-2024-002" โ€” produces a completely different 64-character result with no visible resemblance to the first, even though only one digit changed. That unpredictable, all-or-nothing change (the avalanche effect) is what makes hashes reliable for spotting even a single-character edit to a file or message.

Limitations and accuracy

MD5 and SHA-1 are fine for checksums but are broken for security use, and plain hashes should never be used to store passwords. Files up to 200 MB are supported.

Accuracy: Output is tested against known inputs. For production code, review the result and run your own tests.

Expert Tip

For file integrity checks, prefer SHA256 over MD5 or SHA1 โ€” both are considered cryptographically broken for security purposes, even though they're still fine for basic non-security checksums like spotting accidental corruption.

Frequently asked questions

Are my text and files uploaded?
No. Hashing runs in your browser using the Web Crypto API and a built-in MD5 routine, so nothing leaves your device.
What is an HMAC?
An HMAC is a hash combined with a secret key, used to verify that a message is authentic and unmodified. Tick the HMAC option and enter your key to generate one.
Which algorithm should I use?
Use SHA-256 or SHA-512 for anything security-related. MD5 and SHA-1 are only suitable for detecting accidental changes, such as comparing a downloaded file with its published checksum.
Can I hash a file?
Yes. Choose a file (up to 200 MB) and all five hashes are computed for its exact bytes.

Hash Generator: the complete guide

What a hash is

A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, a tiny change gives a completely different one, and the original cannot be recovered from the hash. The Hash Generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for text or for a file of up to 200 MB, and it can also compute an HMAC with a secret key.

Examples to check your results

The word hello gives these hashes, which you can use to confirm that any tool you use is working.

  • MD5: 5d41402abc4b2a76b9719d911017c592
  • SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
  • SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
  • The SHA-256 of an empty input is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
  • Changing one letter shows how sensitive hashes are: the SHA-256 of Hello begins 185f8db3, while the SHA-256 of hello begins 2cf24dba.

Verifying a download

The most common use is checking that a file arrived intact. Publishers list a checksum next to a download. Choose the file in the tool, compute SHA-256 and compare the result with the published value, character by character. If they match, the file was not corrupted or changed on the way. Prefer SHA-256 or SHA-512 for this; if a site only offers MD5 or SHA-1, they still catch accidental damage but are not safe against someone who deliberately crafts a file.

HMAC and the secret key

An HMAC mixes a secret key into the hash, so only someone who knows the key can produce or check it. APIs use it to sign requests and webhooks. Tick HMAC with a secret key, type the key, and the tool computes the keyed hash: the HMAC-SHA-256 of hello with the key secret is 88aab3ede8d3adf94d26ab90d3bafd4a2083070c3bcce9c014ee04a443847c0b. There is also an option to show the hexadecimal output in uppercase.

What hashes are not for

A plain hash is not a safe way to store passwords, because fast hashes can be tested against billions of guesses per second. Passwords need a deliberately slow, salted algorithm such as bcrypt or Argon2. MD5 and SHA-1 are broken for security purposes. Base64, hashing and encryption: what is the difference? explains the three ideas, and the Password Generator creates strong passwords. The work is done in your browser using its built-in cryptography, so files and text are never uploaded.

Choosing an algorithm

Use SHA-256 as the sensible default. SHA-384 and SHA-512 are longer and are chosen by some standards and for speed on 64-bit machines. MD5 and SHA-1 remain in use for quick checksums, cache keys and legacy systems, but a determined attacker can create two different files with the same MD5 or SHA-1 hash, so they must not protect anything. For more on picking a method and on passwords, see the Password Strength Checker and the guide to password strength: length vs complexity.

Learning resources

Explore more in Developer Tools, read the guides and articles, or see how we test our tools.

Share This Tool