SHA-512 Generator

Hash text with this SHA512 generator and get the full 128-character SHA-512 value, the largest hash in the SHA-2 family.

Hashed in your browser. Your text is not uploaded.

Hashed as UTF-8. A trailing space or line break changes the hash.

Algorithms

How to use the SHA-512 Generator

  1. Type or paste the text. The SHA-512 row updates as you go.
  2. Pick the output format. The hex value is long, so the copy button is the easiest way to take it.
  3. Paste a published SHA-512 into Compare with to verify it.

How SHA-512 works

SHA-512 works like SHA-256 with everything doubled: 1024-bit blocks, eight 64-bit words of state, and 80 rounds per block. The full state becomes the 512-bit output, which is 128 hex characters.

On a 64-bit processor each round handles twice as many bits per instruction, so SHA-512 often hashes long input faster than SHA-256. Here it runs through your browser's crypto.subtle.digest('SHA-512', ...) on the UTF-8 bytes of the text.

Examples

The test vector for abc:

ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f

The empty string:

cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

A SHA-512 that starts with cf83e135 is almost always the hash of nothing, a common sign that a script hashed a file before it finished loading.

Limitations

  • Linux password hashes that start with $6$ are called SHA-512 crypt, but they run SHA-512 thousands of times with a salt. A single SHA-512 from this box will not match them.
  • Like SHA-256, plain SHA-512 is open to length extension when used as hash(secret + message). Use an HMAC for keyed hashing.
  • For a large file, run sha512sum or certutil -hashfile name SHA512 on your computer. This page takes typed or pasted text.

Frequently asked questions

Is SHA-512 more secure than SHA-256?

Both are secure today. SHA-512 has a larger margin against future attacks, and it costs more space to store. For most checksums SHA-256 is enough.

How long is a SHA-512 hash?

512 bits, written as 128 hex characters or 88 Base64 characters with padding.

Can I make a shorter SHA-512 hash?

Cutting the hex string yourself gives a different value from the standard SHA-512/256. If you need a shorter output, use SHA-384 or SHA-256 instead.

Often used together with SHA-512 Generator.

  • SHA-3 Generator

    SHA3-224, SHA3-256, SHA3-384, SHA3-512, and Keccak-256 hashes of text.

  • HMAC Generator

    Signs text or files with HMAC-SHA256 and other hashes, and checks signatures.