Hash Generator — SHA-256, SHA-1, SHA-512 online

Compute SHA-256, SHA-1, SHA-384 or SHA-512 of any text in your browser. Nothing is sent.

Options

Runs in your browser
Hash
—
Algorithm
—
Bits
—
Hex length
—

Formula & explanation

What a hash is. A cryptographic hash turns any input into a fixed-length fingerprint (a digest). SHA-256 always returns 256 bits — 64 hexadecimal characters — whether you feed it one letter or a whole book. The same input always produces the same digest, which is what lets you use it to verify data.

Hashing is not encryption. This is the point people miss most. Encryption is two-way: with the key you turn ciphertext back into the original. Hashing is one-way — there is no "un-hash" and nothing to decrypt. You cannot recover the input from the digest; it is not a reversible operation. When someone "cracks" a hash they are guessing inputs and re-hashing them to compare, not reversing the math.

How this tool works. The digest is computed locally with the browser's Web Crypto API (crypto.subtle.digest); your text never leaves your device. Pick SHA-256, SHA-384 or SHA-512, and optionally uppercase the output to match a checksum you're comparing against.

What it's good for — and not. Use a hash to verify file integrity (compare a published SHA-256), to build cache keys or ETags, to deduplicate content, or as a content-addressed identity. Do not store passwords with a raw fast hash like SHA-256 — use a slow, salted KDF such as bcrypt or Argon2. And avoid SHA-1 for new security work: it is broken for collisions.

Example

Text to hashhello
Algorithmsha-256
Hash2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Bits256

Frequently asked questions

Is my text uploaded?

No. The hash is computed in your browser with the Web Crypto API; the text never leaves your device.

Is hashing the same as encryption?

No. Encryption is two-way — with the key you recover the original. Hashing is one-way: there is no key and no decrypt step, and the input cannot be reconstructed from the digest. Use encryption to keep something you need back, hashing to verify or fingerprint.

Can I undo a hash?

No. Hashing is one-way by design. Identical input gives identical output, but the original cannot be recovered — 'decrypting a hash' isn't a thing. Crackers simply guess candidate inputs and compare digests.

Which algorithm should I use?

SHA-256 for almost everything. Use SHA-512 for extra length; avoid SHA-1 for new security work, it is broken for collisions.

Can I use SHA-256 to store passwords?

Not on its own — it's too fast, so attackers can test billions of guesses per second. For passwords use a slow, salted key-derivation function like bcrypt, scrypt or Argon2.

Why does the hash change with a space?

Any change, even one character or space, produces a completely different hash. About half the output bits flip. That is the avalanche effect, and it's what makes tampering easy to detect.

What is the hash useful for?

Verifying file integrity (compare a published checksum), cache keys and ETags, deduplication, and content-addressed identifiers like the ones version control systems use.

Read the guide

Related tools