SHA-512 Hash Generator
Generate the SHA-512 hash of any text or file, as hex or Base64, with optional HMAC and a check against an expected hash.
·
✓ The hashes match
✗ The hashes do not match
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the SHA-512 Hash Generator
- 1 Type or paste your text, or switch to File and choose a file.
- 2 Optionally turn on HMAC and enter a key.
- 3 Copy the SHA-512 hash, or paste an expected hash to compare.
About the SHA-512 Hash Generator
SHA-512 turns any input into a fixed-length fingerprint of 512 bits, written as 128 hexadecimal characters. The same input always gives the same hash, the smallest change gives a completely different one, and you cannot turn the hash back into the input.
SHA-512 belongs to the same SHA-2 family as SHA-256 but works on 64-bit words, which makes it faster than SHA-256 on 64-bit processors, and gives a longer 512-bit hash. It is used in Linux password files (crypt $6$), DNSSEC and Ed25519 signatures.
Text is hashed as UTF-8 bytes, exactly like most programming languages do, so the result matches sha512sum on the command line for the same bytes. Files are read in chunks in your browser, so even very large files work. With HMAC, a secret key is mixed in (RFC 2104), which is how APIs and webhooks sign their messages.
Frequently asked questions
Can a SHA-512 hash be decrypted?
No. A hash is a one-way function: there is no key to reverse it. "Decrypting" sites only look the hash up in tables of known inputs, which works for common words and short passwords.
Why does my SHA-512 differ from another tool?
Usually because of invisible differences in the input: a trailing newline, a different line ending (Windows CRLF versus LF) or a different text encoding. This tool hashes exactly the characters in the box, as UTF-8.
What is the SHA-512 of an empty string?
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e. It's a quick way to recognise an empty input.
What is HMAC for?
HMAC proves that a message was made by someone who knows the secret key, and that it was not changed. Webhook providers such as Stripe and GitHub sign their requests with HMAC-SHA256.
Should I use SHA-512 for passwords?
No. Plain hashes are far too fast: attackers try billions per second. Store passwords with a slow, salted hash such as Argon2id or bcrypt; our password hash generator makes them.