Hash Generator (SHA-1, SHA-256, SHA-512)
Create SHA hashes of any text instantly. Uses your browser's built-in Web Crypto API, so your text never leaves your device.
Create SHA hashes of any text instantly. Uses your browser's built-in Web Crypto API, so your text never leaves your device.
A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one. Hashes are used to verify data integrity and to build signatures.
This tool computes SHA-1, SHA-256, SHA-384 and SHA-512 using the Web Crypto API built into your browser.
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
A cryptographic hash maps input of any size to a fixed-size digest. SHA-256 gives 256 bits, shown as 64 hexadecimal characters, SHA-384 gives 96 characters and SHA-512 gives 128 characters. Good hashes are deterministic, fast, and designed so that finding an input from a digest, or finding two inputs with the same digest, is computationally infeasible. Changing a single character in the input changes about half of the output bits, known as the avalanche effect.
SHA-1 and the SHA-2 family are defined in NIST FIPS 180-4. SHA-1 has been broken for collision resistance, with practical collisions demonstrated in 2017, so it should not be used for signatures or certificates. Fast general hashes are also a poor choice for storing passwords because attackers can try billions of guesses per second. Use a slow, salted algorithm such as bcrypt, scrypt or Argon2 for that purpose. Also remember that hashes are computed over bytes, so the text encoding affects the result.
No. The Web Crypto API does not provide MD5, and MD5 is not considered secure. Use SHA-256 or stronger.
No. A hash cannot be reversed. Do not use a plain fast hash to store passwords, use a dedicated password hashing function.
It is still used for non-security purposes like Git object IDs, but it is no longer safe for signatures.
No. Hashing runs in your browser. It needs a secure context, which means https or localhost.
Not mathematically, but short or common inputs can be found by trying guesses or using precomputed tables. That is why plain hashes of weak passwords are unsafe.
The inputs probably differ in a hidden way, such as line endings, trailing spaces or text encoding. Hash functions are exact, so any single byte difference gives a different result.