SiteBox

Hash Generator

Free Online MD5, SHA-1, SHA-256, SHA-384 & SHA-512 Hash Generator

Type or paste any text below and instantly generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Everything is computed locally in your browser — your data never leaves your device.

How to Use the Hash Generator

1. Enter Your Text

Type or paste any text, password, or string into the input box.

2. Generate the Hashes

Click Generate Hashes. All five algorithms — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — are calculated at once.

3. Copy the Result

Each hash appears in its own read-only box. Click the copy button next to any hash to copy it to your clipboard.

What is a Hash Generator?

A hash generator converts any input text into a fixed-length string of characters called a hash digest. Hashing is one-way, meaning you cannot reverse a hash back to its original text, which makes it ideal for verifying data integrity, storing passwords securely, and generating checksums.

This tool supports the five most widely used algorithms: MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit), SHA-384 (384-bit), and SHA-512 (512-bit). The SHA-256, SHA-384 and SHA-512 hashes are computed using the Web Crypto API built into your browser, while MD5 uses a well-known pure JavaScript implementation.

Because all computation happens locally, your text is never uploaded to any server — it is a fast, private and completely free online hash generator.

What a Hash Is Good For, and What It Isn't

A cryptographic hash function turns any input into a fixed-length fingerprint. Change a single character and the fingerprint changes completely; there is no practical way to run it backwards. Those two properties make hashes useful for a specific set of jobs:

  • Checking that text was not altered. Two people can compare a SHA-256 value over the phone instead of comparing a whole document line by line.
  • Cache keys and deduplication. Hashing a long string gives a short, stable identifier for it.
  • Matching values against a known checksum. Many build tools, APIs and webhooks publish or send a hex digest you need to reproduce.

What a plain hash is not good for is storing user passwords. MD5 and SHA-family hashes are designed to be fast, which lets an attacker test billions of guesses per second against a leaked database. Password storage needs a deliberately slow, salted algorithm such as bcrypt, scrypt or Argon2, which your application's framework should provide.

Try It: the Avalanche Effect

Type hello and generate. The SHA-256 digest is:

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Now type Hello with a capital H:

185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969

One letter's case changed and the two digests share nothing recognisable. That sensitivity is the point. It also means invisible differences matter: a trailing space or a newline at the end of your input produces a completely different hash, which is the single most common reason a hash "doesn't match" what another system computed.

Choosing an Algorithm

AlgorithmOutputStatusReasonable uses today
MD5128 bits, 32 hex charsBroken: collisions can be produced deliberatelyMatching legacy checksums, non-security cache keys
SHA-1160 bits, 40 hex charsBroken: a practical collision was published in 2017Legacy compatibility only (for example Git object IDs)
SHA-256256 bits, 64 hex charsSecureThe default choice for integrity checks and signatures
SHA-384384 bits, 96 hex charsSecureSubresource Integrity (SRI) attributes, some TLS suites
SHA-512512 bits, 128 hex charsSecureWhen a longer digest is required; often fast on 64-bit CPUs

If nothing tells you which one to use, pick SHA-256. The SHA-2 family here is computed with the browser's built-in Web Crypto API (crypto.subtle.digest), the same implementation browsers use for HTTPS. MD5 is not part of Web Crypto, so it is calculated with a small JavaScript implementation. Either way, your text stays on your device.

Why Your Hash Doesn't Match

  1. Whitespace. Command-line tools like echo "hello" | sha256sum include a newline. Use echo -n or printf to hash the bare text.
  2. Encoding. Text is hashed as UTF-8 bytes. A system using UTF-16 or Latin-1 will get a different digest for any non-ASCII character.
  3. Hex vs Base64 output. Some APIs show digests in Base64. The bytes are the same but the text looks different.
  4. HMAC vs plain hash. Webhook signatures (Stripe, GitHub and others) are HMACs that mix in a secret key. A plain SHA-256 of the body will never match them.

Related Tools

Need a random identifier rather than a fingerprint of existing text? Use the UUID Generator. For strong random secrets and passwords, use the Password Generator. To convert digest bytes into Base64 or inspect an encoded value, see Base64. All in developer tools.

Frequently Asked Questions

Can a hash be decrypted?

No. Hashing is one-way. Sites that claim to "decrypt" MD5 are looking the hash up in tables of previously hashed common strings.

Is MD5 still safe to use?

Not for security. MD5 collisions can be created on purpose. It is still acceptable for non-security uses such as matching an old checksum.

Which hash should I use to store passwords?

None of these directly. Use a slow, salted password hashing algorithm such as Argon2, bcrypt or scrypt.

Why is my SHA-256 different from the command line?

Usually because the command included a trailing newline. Hash with echo -n or printf, and check the text encoding is UTF-8.

Is my text sent anywhere?

No. All hashes are calculated locally in your browser.