Hash Generator

Hash any text with five algorithms at once — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — computed live in your browser, with honest notes on which are safe for what.

Developer ToolsPopular Free No upload Instant

Loading Hash Generator…

Your browser is preparing the tool. It runs 100% locally.

Quick Answer

Type text and the tool shows its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once, as hexadecimal, updating live. Hashing is one-way — you cannot turn a hash back into the text. One honest caveat: MD5 and SHA-1 are cryptographically broken and should not be used for security; the SHA-256 family is fine for integrity checks. None of these are suitable for storing passwords. It runs entirely in your browser.

What the Hash Generator Does

Paste or type a string and you get five hashes side by side — a short MD5, a SHA-1, and the longer SHA-256, SHA-384 and SHA-512 — each a fixed-length hexadecimal fingerprint of your input. Change one character and every hash changes completely.

A hash is a one-way fingerprint: the same input always gives the same output, but you cannot reverse it to recover the text. That makes hashes useful for checking that data has not changed, comparing files, or deduplicating — not for hiding data, which is what encryption does.

How It Works

The SHA hashes are computed with the browser's built-in Web Crypto digest function; the MD5 is computed by a small bundled implementation, since browsers no longer offer MD5 natively. Your text is read as UTF-8 bytes first, so accented and non-Latin characters hash consistently.

Each algorithm produces a fixed length regardless of input size: MD5 is 32 hex digits, SHA-1 is 40, SHA-256 is 64, SHA-384 is 96 and SHA-512 is 128. The output is deterministic — identical input always yields identical hashes — which is exactly what lets two parties compare a hash to confirm they hold the same data.

Generation algorithm

  1. Read the text as UTF-8. Convert your input to UTF-8 bytes so every character hashes consistently.
  2. Compute the SHA hashes. Use the browser's Web Crypto digest for SHA-1, SHA-256, SHA-384 and SHA-512.
  3. Compute MD5. Run the bundled MD5 implementation, since browsers do not provide it.
  4. Show as hexadecimal. Display each fixed-length hash as lowercase hex, live as you type.

Hash lengths (hex digits)

MD5 → 32 SHA-1 → 40 SHA-256 → 64 SHA-384 → 96 SHA-512 → 128

Each algorithm always outputs the same length, whatever the input size. The same input always gives the same hash.

Privacy

All hashing happens in your browser; the text you type is never uploaded. You can hash sensitive values without them leaving your device.

A hash is one-way, but it is not a secret store. Identical inputs produce identical hashes, so a short or common input can be matched against precomputed tables — never treat a plain hash of a password or secret as protection.

Technical Details

AlgorithmsMD5, SHA-1, SHA-256, SHA-384, SHA-512
SHA methodWeb Crypto (browser built-in)
MD5 methodbundled implementation
Inputread as UTF-8
Outputlowercase hexadecimal, fixed length
Directionone-way (cannot be reversed)
Where it runsIn your browser — nothing uploaded

Standards & references

  • MD5 and SHA-1 are broken — practical collision attacks exist — MD5 since the mid-2000s, SHA-1 since the 2017 SHAttered attack — so neither is safe for signatures or security. They remain usable as non-security checksums.
  • SHA-2 family — SHA-256, SHA-384 and SHA-512 have no known practical attacks and are the standard choice for integrity verification.
  • Not for passwords — all of these are fast, general-purpose hashes; storing passwords needs a slow, salted password hash such as bcrypt, scrypt or Argon2.

Accuracy & Limitations

MD5 and SHA-1 are cryptographically broken. Attackers can craft two different inputs with the same MD5 or SHA-1 hash, so do not use them for digital signatures, certificates or anything security-sensitive. They are still fine for non-security uses like a quick checksum or cache key.

Do not use any of these to store passwords. They are fast by design, so a leaked database of fast hashes can be cracked at billions of guesses per second. Passwords need a deliberately slow, salted algorithm — bcrypt, scrypt or Argon2.

Hashing is not encryption. There is no key and no way to reverse a hash back to the text; if you need to recover the original, you need encryption, not hashing.

These are plain hashes, not keyed (HMAC) or salted. For verifying a message came from a known party you would use HMAC; for passwords you would add a unique salt. This tool gives the raw digest only.

The result is deterministic and sensitive to the exact input. Even an invisible difference — a trailing space or a different line ending — changes every hash, which is the point: it makes tampering obvious, but also means inputs must match exactly to match hashes.

Real-World Use Cases

File and data integrity

Compare a hash to confirm data downloaded or copied without changing.

Deduplication

Use a hash as a fingerprint to spot identical content.

Cache keys

Turn a long input into a fixed-length key for caching or lookup.

Checksums

Verify a value against a published MD5 or SHA checksum.

When to use it — and when not to

Good for

  • Integrity and checksum verification
  • Fingerprinting or deduplicating data
  • Generating cache or lookup keys
  • Comparing SHA-256 checksums

Not the best choice for

  • Storing or verifying passwords
  • Security uses of MD5 or SHA-1
  • Hiding data (that is encryption)
  • Authenticating a message sender (use HMAC)

Storing passwords? Use bcrypt, scrypt or Argon2 with a unique salt. Need to hide data so it can be recovered? Use encryption. Verifying a message's sender? Use an HMAC with a shared key.

Frequently Asked Questions

Can I reverse a hash to get the text back?
No. Hashing is one-way by design — there is no key and no reverse function. If you can see the original text from a hash, it was looked up in a precomputed table, not mathematically reversed.
Are MD5 and SHA-1 safe to use?
Not for security. Both are cryptographically broken — researchers can produce two different inputs with the same hash. They are fine as plain checksums or cache keys, but never for signatures, certificates or anything security-sensitive.
Which hash should I use for integrity?
SHA-256 is the usual choice — it has no known practical attacks and is widely supported. SHA-384 and SHA-512 are stronger still if you want a longer digest.
Can I hash a password with this?
You can compute the hash, but you should not store passwords this way. These hashes are fast, so a leaked database can be cracked quickly. Passwords need a slow, salted algorithm like bcrypt or Argon2.
Is hashing the same as encryption?
No. Encryption is reversible with a key; hashing is a one-way fingerprint with no key and no way back. Use encryption to protect data you need to read again.
Why does the hash change completely when I edit one character?
Good hash functions spread any change across the whole output, so even a one-character edit produces a totally different hash. That is what makes them useful for detecting tampering.
Why are there five different hashes?
To cover common needs at a glance: MD5 and SHA-1 for legacy checksums you may need to match, and SHA-256, SHA-384 and SHA-512 for secure integrity checks.
Does the same text always give the same hash?
Yes. Hashing is deterministic — identical input always produces identical output, which is what lets two parties compare hashes to confirm they hold the same data.
Why is the input read as UTF-8?
So that accented and non-Latin characters hash the same way everywhere. Hashing the bytes of a consistent encoding means the same text gives the same hash across systems.
What is HMAC, and does this do it?
HMAC is a keyed hash used to prove a message came from someone who knows a shared secret. This tool produces plain hashes, not HMAC; use a dedicated HMAC tool for that.
Is my text uploaded?
No. The hashing runs entirely in your browser; nothing is sent anywhere.
How long is each hash?
Fixed lengths in hex digits: MD5 is 32, SHA-1 is 40, SHA-256 is 64, SHA-384 is 96 and SHA-512 is 128, no matter how long the input is.

References

Computes MD5 (bundled) and SHA-1/256/384/512 (Web Crypto) over your UTF-8 text, in your browser; it states plainly that MD5 and SHA-1 are broken for security, that none of these fast hashes should store passwords (use bcrypt/scrypt/Argon2), and that hashing is one-way, not encryption.

PopularHot

JSON Formatter

JSON Formatter for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

JSON Validator

JSON Validator for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

Base64 Encoder

Base64 Encoder for developers — instant, offline-style and privacy-safe.

DeveloperOpen Tool
Popular

UUID Generator

Fast, free UUID Generator that runs entirely client-side in your browser.

DeveloperOpen Tool
Trending

CSS Minifier

Fast, free CSS Minifier that runs entirely client-side in your browser.

DeveloperOpen Tool
Trending

Regex Tester

Regex Tester online: paste, process and copy without your data hitting a server.

DeveloperOpen Tool

Ready to try the Hash Generator?

It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.