DevToolbox

Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes with Web Crypto.

Processed locally in your browser

Text Input

Digests

SHA-1

SHA-256

SHA-384

SHA-512

Hashing is a one-way transformation, not encryption — it cannot be reversed. Digests are computed locally with the Web Crypto API.

What is the Hash Generator?

The Hash Generator computes SHA-1, SHA-256, SHA-384, and SHA-512 digests of any text using the Web Crypto API built into your browser. Hashes are used for integrity checks, cache keys, content addressing, deduplication, and digital signatures.

Hashing is a one-way transformation, not encryption: you cannot "decrypt" a hash back to the original input. The same input always produces the same digest, and even a one-character change produces a completely different result — which is exactly what makes hashes useful for verifying integrity.

How to use the Hash Generator

  1. Type or paste your text into the input.
  2. All four digests (SHA-1, SHA-256, SHA-384, SHA-512) are computed instantly as you type.
  3. Click the copy button next to any algorithm to copy that hex digest.

Examples

SHA-256 of "hello"

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Avalanche effect

Changing "hello" to "Hello" produces an entirely unrelated digest — hashes give no hint of how similar two inputs are.

Frequently asked questions

Is hashing the same as encryption?

No. Hashing is a one-way transformation — there is no key and no way to reverse it. Encryption is reversible with the right key. Use hashes for integrity, not confidentiality.

Is SHA-1 still safe to use?

SHA-1 is cryptographically broken for collision resistance and shouldn't be used for security purposes. It remains listed for compatibility with legacy systems like Git object IDs and old checksums.

Why isn't MD5 included?

The Web Crypto API deliberately omits MD5 because it is thoroughly broken. If you need MD5 for a legacy system, use a dedicated library — but avoid it for anything security-related.

Can I hash passwords with this?

Plain SHA hashes are the wrong tool for password storage — they're too fast, making brute force easy. Use a dedicated password hashing function like bcrypt, scrypt, or Argon2 instead.