Skip to content
ToolZone

SHA512

Compute the SHA-512 hash of any text input, offering a longer, more collision-resistant hash than SHA-256 for extra security margin.

Runs in your browser. Nothing you enter or upload leaves your device.

SHA-512
—
MD5 · not collision-resistant
—
SHA-1 · not collision-resistant
—
SHA-256
—
SHA-384
—

All hashes are computed in your browser. MD5 and SHA-1 are fine for checksums but should not be used for passwords or signatures.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Type or paste text, or switch to File and drop a file.

  2. 2

    Read the SHA-512 card at the top of the results.

  3. 3

    Click Copy, or paste an expected value into Verify.

Worked examples

SHA-512 of a short word

Getting a reference digest for hello.

Input
hello
Result
9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

128 hex characters. The SHA-256 of the same input, shown above it, is exactly half as long.

Limitations
Files over 200 MB aren't supported. SHA-512/256 is not offered. Output is hex only.
Assumptions
Text is encoded as UTF-8 before hashing.
Privacy
SHA-512 is computed in your browser using the Web Crypto API, and your text is not sent anywhere or stored.

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.

Related tools