Skip to content
SmallEasyTools

MD5 / SHA Hash Generator

Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text at the same time. Compare checksums, test code and verify data — instantly and privately in your browser.

  • Free
  • Runs in your browser
  • No sign-up needed

Free and unlimited · runs entirely in your browser

Rate this tool:
Share: Facebook X LinkedIn WhatsApp Email

Quick answer

To generate a hash, type or paste your text. The tool instantly calculates five hashes — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — of the UTF-8 encoded text. Tick uppercase for capital hex letters and click copy next to any hash. Hashes update as you type and nothing leaves your browser.

Algorithms:
MD5, SHA-1, SHA-256, SHA-384, SHA-512
Input:
Any text, UTF-8 encoded
Output:
Hexadecimal, lowercase or uppercase
Speed:
Instant, updates as you type
Engine:
Web Crypto API (SHA) in your browser
Upload needed:
No – nothing is sent
Account:
Not required
Price:
Free

A hash function turns any input — a word, a sentence, a whole document — into a fixed-length fingerprint. The same input always produces the same hash, while changing even a single character produces a completely different one. And you cannot work backwards from the hash to the original input. These properties make hashes useful everywhere in computing: checking that files have not been altered, comparing data without storing it, building caches and identifiers, signing documents and storing passwords safely.

Our hash generator calculates the five most widely used hashes at once: MD5 (128-bit), SHA-1 (160-bit) and the SHA-2 family — SHA-256, SHA-384 and SHA-512. Text is encoded as UTF-8 before hashing, so results match those from PHP, Python, Node.js, Java and command-line tools such as md5sum and sha256sum for the same text.

SHA hashes are computed with your browser's built-in Web Crypto API and MD5 with a small local library, so the text you hash never leaves your device. That matters, because people often hash things like email addresses, API payloads and tokens while debugging.

How to generate an MD5 or SHA hash – step by step

  1. 1 Enter your textType or paste the text you want to hash. Spaces and line breaks count.
  2. 2 Read the hashesMD5, SHA-1, SHA-256, SHA-384 and SHA-512 appear instantly.
  3. 3 Choose the caseTick uppercase if the system you compare with uses capital hex letters.
  4. 4 Copy the hash you needClick copy next to the algorithm you want.
  5. 5 ComparePaste the expected hash next to it, or compare with the output of your code or command line.

Why use this hash generator?

Five algorithms at once

MD5, SHA-1, SHA-256, SHA-384 and SHA-512 together.

UTF-8 correct

Matches results from common programming languages.

Live updates

Hashes change as you type.

Uppercase option

Match systems that use capital hex.

One-click copy

Copy any hash instantly.

Private

Calculated locally; nothing is uploaded or logged.

Hash algorithms compared

AlgorithmOutput sizeHex lengthSecurity statusTypical use today
MD5128 bits32Broken (collisions)Non-security checksums, cache keys, Gravatar
SHA-1160 bits40Broken (collisions)Legacy systems, Git object IDs
SHA-256256 bits64SecureFile verification, certificates, blockchain, APIs
SHA-384384 bits96SecureTLS, high-security signatures, subresource integrity
SHA-512512 bits128SecureSignatures, integrity checks on 64-bit systems

Is MD5 still safe?

For security purposes, no. Researchers can create two different inputs with the same MD5 hash (a collision) in seconds, and SHA-1 collisions have been demonstrated too. That means MD5 and SHA-1 must not be used for digital signatures, certificates or anything where an attacker could benefit from a forged match. MD5 is still fine for non-security tasks: detecting accidental file corruption, deduplicating data, generating cache keys or identifiers, and compatibility with older systems. For anything security-related, use SHA-256 or stronger.

Hashing passwords: do it properly

Never store passwords as plain MD5 or SHA hashes. These algorithms are designed to be fast, which lets attackers test billions of guesses per second, and huge "rainbow tables" of precomputed MD5 hashes of common passwords exist. Websites must use dedicated password-hashing functions — Argon2id, bcrypt or scrypt — which are deliberately slow and use a unique random salt for every password. Most frameworks (Laravel, Django, Rails, ASP.NET) and PHP's password_hash() do this for you. To create strong passwords, use our Password Generator, and test them with the Password Strength Checker.

Verifying downloads with checksums

Software publishers often list a SHA-256 checksum next to a download. After downloading, calculate the file's hash on your computer — certutil -hashfile file.zip SHA256 on Windows, shasum -a 256 file.zip on macOS or sha256sum file.zip on Linux — and compare it with the published value. If they match, the file is complete and unaltered. This tool hashes text; for files, the command-line method is the quickest.

Why do I get a different hash than another tool?

Hashes are exact: a single invisible difference changes the result. Common causes are a trailing space or line break (many command-line examples add a newline with echo; use echo -n to avoid it), different text encoding (UTF-8 vs. UTF-16 or Latin-1), Windows (CRLF) vs. Unix (LF) line endings, and uppercase vs. lowercase hex output. This tool hashes exactly the characters in the box, encoded as UTF-8.

The avalanche effect

A good hash function shows the "avalanche effect": a tiny change in the input changes about half of the output bits, so the new hash looks completely unrelated. Try it here — type "SmallEasyTools", note the SHA-256 hash, then change one letter to lowercase. The two hashes share no visible pattern. This property is what makes hashes reliable fingerprints: you cannot nudge an input step by step towards a target hash, and you cannot tell from two hashes how similar their inputs were. It is also why a single changed byte in a downloaded file produces a mismatched checksum, instantly revealing corruption or tampering.

What is HMAC?

HMAC (Hash-based Message Authentication Code) combines a hash function such as SHA-256 with a secret key. Payment gateways, webhooks and many APIs use HMAC-SHA256 to sign messages: the sender calculates the HMAC of the request with the shared secret, and the receiver recalculates it to confirm the message really came from the sender and was not changed. A plain hash cannot do this, because anyone can calculate it. If you are integrating a payment provider or webhook, use your language's HMAC function with the secret from your dashboard, and never expose that secret in front-end code.

Common uses of hashes

  • Data integrity — confirm that a file, message or database record has not changed.
  • Deduplication — detect identical files or rows by comparing hashes.
  • Caching — generate keys from content to know when it has changed.
  • APIs — sign requests with HMAC-SHA256 to prove they are genuine.
  • Gravatar — profile images are looked up by a hash of the email address.
  • Git — every commit and file is identified by a SHA-1 (moving to SHA-256) hash.
  • Blockchain — Bitcoin and many other systems are built on SHA-256.

Hashing vs. encryption vs. encoding

These three are often confused. Hashing is one-way: you cannot get the input back from the hash. Encryption is two-way with a key: you can decrypt the data if you have the key. Encoding, such as Base64, is two-way without any key: anyone can decode it. Use hashing to verify, encryption to keep secrets and encoding to transport data. Try encoding with our Base64 Encoder.

Troubleshooting

  • Hash does not match my code. Check for trailing spaces, line breaks and encoding differences.
  • Uppercase vs. lowercase. Hex hashes are case-insensitive; tick uppercase if you need capitals.
  • Empty input. Even empty text has a hash, such as d41d8cd98f00b204e9800998ecf8427e for MD5.
  • Can I reverse a hash? No. Hashes are one-way; only guessing the input can "find" it.

Frequently asked questions

What is an MD5 hash?

A 128-bit fingerprint of data, shown as 32 hexadecimal characters.

Can an MD5 hash be decrypted?

No. Hashes are one-way. Common inputs can only be guessed by comparing against lists of known hashes.

Is MD5 secure?

Not for security. Use SHA-256 or stronger for signatures and integrity where attackers are involved.

Which hash should I use?

SHA-256 for most purposes; MD5 only for non-security checksums and compatibility.

Should I hash passwords with SHA-256?

No. Use Argon2id, bcrypt or scrypt with a salt.

Why is my hash different from another tool?

Usually because of an extra space, line break or different text encoding.

Is my text sent to a server?

No. Hashes are calculated in your browser.

Can I hash files here?

This tool hashes text. Use certutil, shasum or sha256sum to hash files.

How long is a SHA-256 hash?

64 hexadecimal characters (256 bits).

Are uppercase and lowercase hashes different?

No. They represent the same value; only the letters' case differs.

Is the hash generator free?

Yes. No sign-up required.

Can two different texts have the same hash?

In theory yes, because hashes have a fixed length. For SHA-256 it is practically impossible to find such a pair; for MD5 and SHA-1, researchers can create collisions on purpose.

Does the tool support Bengali or emoji?

Yes. Text is encoded as UTF-8 before hashing, so every language and emoji is handled correctly.

Is SHA-512 better than SHA-256?

Both are secure. SHA-512 gives a longer hash and can be faster on 64-bit computers; SHA-256 is more widely used.

Last updated November 21, 2026 · Written and tested by the SmallEasyTools team.