SHA512
Calculate SHA-512 hashes or HMAC-SHA-512 for text using UTF-8, UTF-16, Hex, Base64, and other input encodings. Expand to read more.
Calculate a SHA-512 hash online
SHA-512 is a SHA-2 cryptographic hash function that maps input bytes to a fixed 512-bit digest. Enter text or encoded binary data and display the result as lowercase Hex, uppercase Hex, or Base64. HMAC-SHA-512 is available for keyed authentication.
The same bytes always produce the same digest, while even a small input change produces a different result. SHA-512 is not encryption and cannot be reversed to recover the source.
How to calculate SHA-512
- Enter the source text or encoded bytes.
- Select the input encoding used to construct the byte sequence.
- Choose Hex or Base64 output.
- Enable HMAC and enter a secret key only when required.
- Calculate and compare the complete 128-character lowercase Hex digest when using Hex.
SHA-512 compatibility
NIST FIPS 180-4 specifies SHA-512. It is distinct from SHA-512/224 and SHA-512/256, which use different initial values and truncated output definitions rather than simply displaying fewer characters from SHA-512.
Input encoding, Unicode normalization, whitespace, and line endings change the bytes and therefore the digest. Agree on serialization before comparing results across systems.
SHA-512 FAQ
Is SHA-512 suitable for password storage?
A single fast SHA-512 digest is not. Use a dedicated password-hashing or key-derivation scheme with salt and a work factor.
What is HMAC-SHA-512?
HMAC combines SHA-512 with a secret key to authenticate a message; it is not equivalent to concatenating a password and message before hashing.
How do I hash a file?
Use SHA-512 File Hash for local files or URL content.