Skip to main content
← Home

Hash Generator

Generate cryptographic hashes from text

What is a hash?

The same input always gives the same hash, and changing one character changes the whole hash. SHA-256 (the default) and SHA-512 are secure. MD5 and SHA-1 are fine for checksums and cache keys but broken for security, because collisions can be produced on purpose. Text is hashed as UTF-8 in your browser.

Examples

SHA-256 of “hello”
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256 of “Hello” — one capital letter, a completely different hash
185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
Hash a file in a terminal
sha256sum file.zip        # Linux
shasum -a 256 file.zip    # macOS

Frequently asked questions

Can a hash be reversed?

No. Hash functions are one-way: the original text cannot be calculated from the hash. Short or common inputs can still be guessed by trying many candidates, which is why passwords need special handling.

Which hash algorithm should I use?

Use SHA-256 for integrity checks and signatures. SHA-512 offers a longer digest and is often faster on 64-bit CPUs. Use MD5 or SHA-1 only when an existing system requires them.

Should I hash passwords with SHA-256?

No. For storing passwords use a slow, salted algorithm such as Argon2id, bcrypt or scrypt. Fast hashes like SHA-256 let attackers test billions of guesses per second.

Is my text sent to a server?

No. Hashes are computed in your browser, and the text never leaves your device.

Related tools