Cipher Utility

SHA-512 Hash Generator

H-04

SHA-512 of any text or file, with a checksum checker. Runs in your browser; nothing is uploaded.

Case:

512 bits, 128 hex characters

How to verify a file

  1. Click File and drop in the file.
  2. Paste the published SHA-512 into Compare with.
  3. A green bar means the file is intact.
  4. A red note explains a mismatch.

Worked example

hello

9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

128 hex characters for a five-letter word.

Cipher Utility reference card Catalog no. H-04

What SHA-512 is

SHA-512 is the largest member of the SHA-2 family, published by NIST in 2001 together with SHA-256. It turns any input into a 512-bit value, written as 128 hexadecimal characters. Like every good hash, it always gives the same result for the same input and a completely different one for the smallest change.

InputSHA-512
(empty)cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
hello9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

SHA-512 or SHA-256?

Both are secure, and no practical attack is known on either. SHA-256 is the more common default for checksums and certificates. SHA-512 produces a hash twice as long and, because it works on 64-bit words, is often faster on 64-bit computers. Pick whichever the system or download page you are working with uses. The hash generator shows both at once.

Linux systems often store login passwords with a scheme built on SHA-512 (hashes that start with $6$). That scheme adds a salt and thousands of rounds; a single plain SHA-512, like the one on this page, is too fast for storing passwords. Use bcrypt for that.

SHA-512 on your own computer

macOS: shasum -a 512 file.iso Linux: sha512sum file.iso Windows: certutil -hashfile file.iso SHA512 PowerShell: Get-FileHash file.iso -Algorithm SHA512

Questions about SHA-512

Can a SHA-512 hash be decrypted?

No. SHA-512 is a one-way hash and the input is not stored in it. The only attack is guessing: hashing candidate inputs until one matches, which only works for short or common inputs.

Is SHA-512 more secure than SHA-256?

It has a longer output and a larger security margin, but both are considered secure today and neither has a known practical attack. SHA-256 is more widely used; SHA-512 is a good choice when a system asks for it or when you want the longer hash.

Why is SHA-512 sometimes faster than SHA-256?

SHA-512 works on 64-bit words and processes 128 bytes per round, so on 64-bit processors it often hashes large files faster than SHA-256, which works on 32-bit words.

How long is a SHA-512 hash?

512 bits, written as 128 hexadecimal characters.

Is my text or file sent to a server?

No. Hashing runs in your browser with the built-in Web Crypto API. Neither the text nor the file is uploaded.