gettoolz.app

SHA-512 hash generator

SHA-512 gives the longest digest here, 512 bits or 128 hex characters, from the same SHA-2 family as SHA-256 but built on 64-bit words instead of 32-bit ones. Computed in your browser: the text you type is never sent anywhere.

Part of developer tools and security tools.

Text to hash

SHA-512

waiting for input…

MD5

waiting for input…

SHA-1

waiting for input…

SHA-256

waiting for input…

Good to know about SHA-512

Twice the length does not make SHA-256 the weak one: 256 bits already puts collisions far out of reach. What SHA-512’s 64-bit arithmetic buys is speed on 64-bit processors without dedicated SHA instructions, where it often gets through long inputs faster than SHA-256. On recent x86 and ARM chips that do have SHA-256 instructions, the order flips.

It is the hash inside Ed25519 signatures, and the one behind the $6$ password entries of Linux’s /etc/shadow — although those run thousands of salted rounds, so a single SHA-512 of a password is not what that file stores. Its truncated siblings, SHA-384 and SHA-512/256, resist the length-extension trick that plain SHA-512 is open to.

SHA-512 reference hashes

Every digest below was computed by the same code as the generator above when this page was built, and checked against the value recorded in the site’s source — a mismatch stops the build. Inputs are hashed as UTF-8 bytes, with nothing added.

SHA-512 digests of common inputs
InputSHA-512Copy
(empty string)0 bytes. Zero bytes — also the digest of any empty file.cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
abc3 bytes. The test vector used in the algorithm’s own specification.ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
hello5 bytes. Just the five letters, as printf sends them.9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
hello\n6 bytes. With the trailing newline that echo adds.e7c22b994c59d9cf2b48e549b1e24666636045930d3da7c1acb299d1c3b7f931f94aae41edda2c2b207a36e10f8bcb8d45223e54878f5b316e7ce3b6bc019629
The quick brown fox jumps over the lazy dog43 bytes. The classic pangram.07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6
café5 bytes. The é is two bytes in UTF-8, c3 a9.0c9dac7fe613719170790f08a5f7b9f5ef876c7b57ff429074bf417969c2c54107d924daf5e706568afca4712d91da1cfdf77588d76403a845177e23e3aeb8ce

Getting the same digest on the command line

On Linux, printf %s hello | sha512sum prints 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043, the value in the table. The more natural echo hello | sha512sum gives e7c22b994c59d9cf2b48e549b1e24666636045930d3da7c1acb299d1c3b7f931f94aae41edda2c2b207a36e10f8bcb8d45223e54878f5b316e7ce3b6bc019629 instead, because echo appends a newline and the newline is hashed too. On macOS the command is shasum -a 512. When a digest will not match, a trailing newline or a text editor’s different encoding is the first thing to check.

Other algorithms

SHA-512 digests are 512 bits, 128 hex characters. The same text through the other algorithms:

Or open the hash generator with all four side by side. Either way the text stays in this tab — see the privacy page.