About the SHA512
This SHA512 page computes the SHA-512 digest of text or a file, the longest standard output in the SHA-2 family at 512 bits. SHA-384, SHA-256, SHA-1 and MD5 are on the same screen, and a verify box checks a pasted checksum against all of them.
How it works
SHA-512 follows the same design as SHA-256 but works on 64-bit words instead of 32-bit ones, processes 1024-bit blocks, and runs 80 rounds instead of 64. The final eight 64-bit words form a 512-bit digest. On 64-bit processors this often makes SHA-512 as fast as or faster than SHA-256 for long inputs.
On this page the text is encoded as UTF-8 and passed to crypto.subtle.digest with SHA-512. The result is converted to lowercase hexadecimal: 64 bytes become 128 characters.
How to use
- 1
Type or paste text, or switch to File and drop a file.
- 2
Read the SHA-512 card at the top of the results.
- 3
Click Copy, or paste an expected value into Verify.
Worked examples
SHA-512 of a short word
Getting a reference digest for hello.
128 hex characters. The SHA-256 of the same input, shown above it, is exactly half as long.
Frequently asked questions
How is SHA-512 different from SHA-256?+
SHA-512 produces a 512-bit digest using 64-bit words and 80 rounds, while SHA-256 produces 256 bits with 32-bit words and 64 rounds. Both are considered secure.
When would I choose SHA-512 over SHA-256?+
When a standard or system asks for it, when you want a longer digest, or when hashing large data on 64-bit machines where SHA-512 can be faster. Otherwise SHA-256 is more common.
How long is a SHA-512 hash?+
512 bits, written as 128 hexadecimal characters.
Is SHA-512 good for storing passwords?+
Not on its own. It is designed to be fast, which helps attackers guess. Systems like Linux's sha512-crypt add a salt and thousands of rounds; modern apps should prefer Argon2, scrypt or bcrypt.