Logo
Prompt Minds

Hash Generator — MD5, SHA-1, SHA-256 and SHA-512

Hash text or files, create HMACs and verify checksums — privately in your browser.

टेक्स्ट या फ़ाइल का MD5, SHA-256 हैश बनाएँ और डाउनलोड का चेकसम जाँचें।

100% private — runs in your browser · Last Updated: October 2026

Verify a checksum

Paste an expected hash to compare it with the results above.
PDNob logoPDNob Your Lightweight AI-Powered PDF Editor Edit · Convert · Compress · OCR · AI Download for Desktop

Quick Tips

Use SHA-256 or SHA-512 for anything security-related
Check downloads by pasting the publisher's checksum
Extra spaces or new lines change the hash
Never store passwords with plain SHA or MD5
Use HMAC-SHA256 to verify webhook signatures
All Tools
Advertisement

Quick Answer

Type text or choose a file and the tool shows its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once. For example, the SHA-256 of “hello world” is b94d27b9…efcde9. To check a download, paste the checksum from the publisher's website into the verify box — a match means the file is identical. Tick HMAC to sign data with a secret key. Nothing is uploaded.

What is a Hash Generator?

A Hash Generator (हैश जनरेटर) calculates a cryptographic hash — a short, fixed-length fingerprint — for any text or file. Feed in a single word or a gigabyte-sized video and you get back a string of hexadecimal characters that uniquely represents that exact data. Change even one byte and the fingerprint changes completely. That simple property makes hashes one of the most useful building blocks in computing: they verify that downloads are not corrupted or tampered with, detect duplicate files, sign API requests, power version-control systems like Git and help store passwords safely.

This free tool calculates five common algorithms at once — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — for text or for files up to 500 MB, shows the result as hex or Base64, can create HMAC signatures with a secret key, and includes a verify box that tells you instantly whether a published checksum matches. The SHA family uses your browser's built-in Web Crypto API; MD5, which browsers do not provide, uses our own implementation checked against the official RFC 1321 test vectors. Everything runs locally, so your files and secrets never leave your device.

Key Features

  • Five algorithms side by side — MD5, SHA-1, SHA-256, SHA-384, SHA-512.
  • Text or file — type, paste, choose or drag a file.
  • Files up to 500 MB, read and hashed on your device with a progress bar.
  • Hex or Base64, with an UPPERCASE option.
  • HMAC with any secret key for the SHA algorithms.
  • Checksum verification against every algorithm at once.
  • One-click copy for each result.
  • Private — nothing is uploaded or stored.

How to Use It — Step by Step

  1. Choose Text or File.
  2. Enter text in the box, or choose / drop a file.
  3. Read the five hashes — they update as you type.
  4. Change the format to UPPERCASE hex or Base64 if your system needs it.
  5. Tick HMAC and enter a secret key to create signatures.
  6. Paste an expected checksum into the verify box to compare.

Example: “hello world”

AlgorithmHash of “hello world”
MD55eb63bbbe01eeed093cb22bb8f5acdc3
SHA-12aae6c35c94fcfb415dbe95f408b9ce91ee846ed
SHA-256b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
HMAC-SHA256 (key “secret”)734cc62f32841568f45715aeb9f4d7891324e6d948e4c6c60c0621cdac48623a

Add a capital H or a full stop and every value changes completely. That “avalanche effect” is what makes hashes reliable fingerprints.

Which Algorithm Should I Use?

AlgorithmOutputStatusUse for
MD5128 bits (32 hex)Broken — collisions are easyLegacy checksums, non-security de-duplication
SHA-1160 bits (40 hex)Broken — practical collisions shown in 2017Legacy systems only
SHA-256256 bits (64 hex)SecureFile integrity, signatures, HMAC, most purposes
SHA-384384 bits (96 hex)SecureTLS, high-security contexts
SHA-512512 bits (128 hex)SecureLarge-margin integrity, often fast on 64-bit CPUs

When in doubt, choose SHA-256. It is the default for software downloads, code signing, blockchains, Subresource Integrity and API signatures.

Verifying Downloads with Checksums

Many software publishers — Linux distributions, Android tools, open-source projects, firmware vendors — list a SHA-256 (sometimes MD5 or SHA-1) checksum next to each download. To verify your copy:

  1. Switch to File and choose the downloaded file.
  2. Copy the checksum from the publisher's official page.
  3. Paste it into Verify a checksum.
  4. A Match means the file is bit-for-bit identical to the publisher's; No match means it was corrupted in transit or altered — download it again from the official source.

The checksum must come from a trusted source. If an attacker controls the website, they can change both the file and the checksum — which is why important projects also sign their checksums cryptographically.

HMAC Explained

A plain hash proves data has not changed, but anyone can compute it. An HMAC (hash-based message authentication code) mixes a secret key into the calculation, so only people who know the key can produce the correct value. Payment gateways, GitHub, Razorpay, Stripe and many other services sign webhooks with HMAC-SHA256: your server recomputes the HMAC of the received body with the shared secret and compares it with the signature header. This tool lets you reproduce such signatures while debugging. Remember to compare the exact raw body — a re-formatted JSON string produces a different HMAC.

Hashes and Passwords

Websites should never store passwords in plain text — but storing a plain SHA-256 or MD5 of a password is not enough either. Fast hashes can be computed billions of times per second on graphics cards, and huge pre-computed “rainbow tables” map common passwords to their hashes. Password storage requires a deliberately slow, salted algorithm such as Argon2, bcrypt or scrypt, run on the server. Use this tool for checksums, learning and debugging — not for building a password database.

How the Tool Works

Text is encoded as UTF-8 bytes — the standard encoding of the web — so Hindi, emoji and other characters hash the same way as in most programming languages. SHA hashes and HMACs are computed with crypto.subtle.digest and crypto.subtle.sign, the same audited code your browser uses for HTTPS. MD5 is computed by a small open implementation of RFC 1321, processed in slices for large files so the page stays responsive. Files are read with the File API directly from your disk into memory; no network request is made.

Hashes in Everyday Technology

You use hash functions every day without noticing. Git names every commit and file version by its hash, so any change to history is detectable. HTTPS certificates are signed over SHA-256 hashes. App stores and operating-system updates check hashes before installing. Cloud storage services use hashes to avoid storing the same file twice. Blockchains chain blocks together with SHA-256. Even the integrity attribute on a website's script tag is a Base64 SHA-384 hash that tells the browser to refuse a modified file. Understanding hashes makes all of these systems easier to reason about — and this tool lets you experiment with them safely.

Common Uses

  • Verifying ISO images, installers, APKs and firmware downloads.
  • Detecting duplicate files by comparing hashes.
  • Debugging webhook and API signatures (HMAC-SHA256).
  • Creating cache keys and ETags.
  • Generating Subresource Integrity values (SHA-384, Base64) for scripts.
  • Learning how hash functions behave in computer-science classes.
  • Checking that a backup copy is identical to the original.
  • Confirming that a document emailed to you is the same version a colleague signed off.
  • Recording file fingerprints in an audit log so later changes can be detected.

Common Mistakes to Avoid

  • Hidden whitespace — a trailing new line or space changes the hash.
  • Line-ending differences — Windows (CRLF) and Unix (LF) text files hash differently.
  • Using MD5 or SHA-1 for security — choose SHA-256 or stronger.
  • Comparing different algorithms — a SHA-256 checksum will never match an MD5 result.
  • Trusting checksums from unofficial mirrors.

Troubleshooting

  • No match but the file seems fine — check you copied the full checksum and the right algorithm; download again if needed.
  • File too large — the limit is 500 MB to protect your browser's memory.
  • Hash differs from command-line output — commands like echo add a new line; use echo -n or printf.
  • MD5 shows “HMAC is offered for SHA algorithms only” — untick HMAC to see the plain MD5.

Quick Glossary

  • Hash / digest: the fixed-length output of a hash function.
  • Checksum: a hash published to verify a file's integrity.
  • Collision: two different inputs with the same hash.
  • Avalanche effect: a tiny input change causing a completely different hash.
  • HMAC: a keyed hash used to authenticate messages.
  • UTF-8: the text encoding used to turn characters into bytes.
  • Hexadecimal: base-16 notation using 0–9 and a–f; each byte becomes two characters.
  • Base64: a text encoding that represents 3 bytes as 4 characters, making hashes shorter.
  • Salt: random data added to a password before hashing so identical passwords get different hashes.

Why Use This Hash Generator?

It shows all common hashes at once for text and large files, verifies checksums automatically, supports HMAC, explains which algorithms are safe and keeps everything on your device — free, fast and without sign-up.

Hash Generator — Key Facts

AlgorithmsMD5, SHA-1, SHA-256, SHA-384, SHA-512
InputsUTF-8 text or a file up to 500 MB
OutputHex (lower/upper case) or Base64
HMACHMAC-SHA-1/256/384/512 with your secret key
VerifyPaste an expected checksum to compare
SecuritySHA-256+ for integrity; MD5/SHA-1 are broken for security

Frequently Asked Questions

What is a hash?

A hash function turns any amount of data into a short fixed-length fingerprint. The same input always gives the same hash, and even a one-letter change gives a completely different result. Hashes are used to check file integrity, store passwords safely (with special algorithms) and identify data.

What is the difference between MD5, SHA-1 and SHA-256?

They produce hashes of different lengths — MD5 128 bits, SHA-1 160 bits, SHA-256 256 bits — and have different security. Practical collisions have been found for MD5 and SHA-1, so they should not be used for security. SHA-256 and SHA-512 are current, secure choices.

How do I verify a downloaded file?

Switch to File, choose the downloaded file, then paste the checksum shown on the download page into the verify box. If it says Match, the file is exactly what the publisher released; if not, download it again from the official site.

Is MD5 still safe to use?

Not for security. Attackers can create two different files with the same MD5. It is still fine for detecting accidental corruption or for legacy systems that require it.

Can I hash large files?

Yes, files up to 500 MB. The file is read into your browser's memory and hashed locally; very large files need enough free memory on your device.

Why is my hash different from another tool's?

Usually the input differs — an extra space, a trailing new line, a different text encoding, or Windows versus Unix line endings. This tool hashes text as UTF-8 exactly as typed.

What is HMAC?

HMAC combines a hash function with a secret key to create a message authentication code. Only someone with the key can produce or verify it, which is why APIs and webhooks use HMAC-SHA256 signatures.

Can I decrypt or reverse a hash?

No. Hashes are one-way. Sites claiming to “decrypt MD5” simply look up hashes of common passwords in large tables — another reason not to use plain hashes for passwords.

Should I use SHA-256 to store passwords?

No. Fast hashes like SHA-256 are easy to brute-force. Use a slow password-hashing algorithm such as bcrypt, scrypt or Argon2 on your server.

What is the Base64 option?

It shows the same hash bytes in Base64 instead of hexadecimal — shorter, and the format some APIs and Subresource Integrity attributes expect.

Is my file uploaded?

No. Files and text are processed entirely in your browser.

Is the Hash Generator free?

Yes. It is free, unlimited and needs no sign-up.

Fingerprint Any File or Text!

MD5, SHA-256 and HMAC in seconds — free and private.

Explore More Prompt Minds Tools

Hash Generator works great alongside our other free tools. Every Prompt Minds tool runs entirely in your browser — no sign-up, no uploads, no watermarks. Browse all free tools.

Prompt Minds AI Assistant
Namaste! How can I help you with Hash Generator?