SHA-512 Hash Calculator
Calculate and verify SHA-512 hashes from text, files, Hex, or Base64 input. The 512-bit (64-byte) digest updates as you type and is displayed as 128 hexadecimal characters. You can also verify a file against a published SHA-512 checksum. Everything is calculated locally in your browser.
Drag and drop a file here or click to select
What is SHA-512?
SHA-512 (Secure Hash Algorithm 512-bit) is a cryptographic hash function in the SHA-2 family. It converts input data of any size into a fixed-length 512-bit (64-byte) hash, commonly represented by 128 hexadecimal characters.
A cryptographic hash acts like a digital fingerprint. The same input bytes always produce the same hash, while even a small change to the input generally produces a very different result.
SHA-512 is used for data integrity verification, digital signatures, certificates, and cryptographic protocols. It is a one-way function: the original input cannot feasibly be recovered from the hash alone.
How long is a SHA-512 hash?
A SHA-512 digest is always 512 bits (64 bytes), or 128 hexadecimal characters, regardless of the input length. Internally, SHA-512 processes input in 1024-bit blocks and uses 64-bit words over 80 rounds.
SHA-512 vs. SHA-256
Both SHA-512 and SHA-256 belong to the SHA-2 family and remain secure for general-purpose cryptographic hashing.
| Feature | SHA-512 | SHA-256 |
|---|---|---|
| Hash length | 512 bits / 128 hex characters | 256 bits / 64 hex characters |
| Collision resistance | Approximately 256 bits | Approximately 128 bits |
| Internal word size | 64 bits | 32 bits |
| Performance | Often faster on 64-bit processors | Often efficient on 32-bit processors |
SHA-512 is not automatically the better choice for every application. SHA-256 produces shorter digests and is widely supported. SHA-512 offers a longer digest and higher theoretical collision resistance.
Is SHA-512 secure?
Yes. SHA-512 is considered secure for general-purpose cryptographic hashing. No practical collision or preimage attacks against the full SHA-512 algorithm are known.
SHA-512 is not suitable for password storage on its own because it is designed to run quickly. Use a dedicated password-hashing algorithm such as Argon2id, bcrypt, or scrypt instead.
How to use this calculator
- Type or paste text into the Input text field. The SHA-512 hash updates as you type.
- To hash raw bytes instead of text, change Input type to Hex or Base64.
- To hash a file, drag it into the file drop zone or click the zone to choose a file.
- Select Copy SHA-512 hash to copy the 128-character hexadecimal result. Uppercase output and Base64 output change the format.
- To compare with a published checksum, turn on Verify hash and paste the expected SHA-512 hash.
Text is encoded as UTF-8 before hashing. Hashes are calculated locally in your browser, and your input is not saved.
Verifying a download
- Drop the downloaded file into the file drop zone.
- Turn on the Verify hash switch below the SHA-512 hash.
- Paste the SHA-512 checksum published by the provider into Expected hash. Upper or lower case, spaces, and whole lines from a checksum file such as
<hash> file.isoare accepted. - A green ✅ Hashes match message confirms the file matches the published hash. A red ❌ Hashes do not match means the file differs from the published one, so download it again from the official source.
Security note: Always obtain the expected checksum from a trusted source. A matching hash does not prove that a downloaded file is safe or authentic if the checksum itself has been compromised.
SHA-512 test example
Use these values to check this calculator or any other SHA-512 tool. Select Try to load an example into the calculator above.
| Input | Input type | SHA-512 hash | Try |
|---|---|---|---|
hello | Text | 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 | |
68656c6c6f | Hex | 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 | |
aGVsbG8= | Base64 | 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 | |
Hello | Text | 3615f80c9d293ed7402687f94b22d58e529b8cc7916f8fac7fddf7fbd5af4cf777d3d795a7a00a16bf7e7f3fb9561ee9baae480da9fe7a18769e71886b03f315 | |
hello followed by Enter | Text | e7c22b994c59d9cf2b48e549b1e24666636045930d3da7c1acb299d1c3b7f931f94aae41edda2c2b207a36e10f8bcb8d45223e54878f5b316e7ce3b6bc019629 | |
hello 😀 | Text | 47c01b18f3d01ad476acebc3241626e1f7c7b9c8f846aa5edc72de96c9f778846f911c411028687a02fa6b546a67b4b5eaaa1acca04859e8af36806630e5b65a | |
68656c6c6f20f09f9880 | Hex | 47c01b18f3d01ad476acebc3241626e1f7c7b9c8f846aa5edc72de96c9f778846f911c411028687a02fa6b546a67b4b5eaaa1acca04859e8af36806630e5b65a |
The first three rows are the same five bytes written as text, Hex, and Base64, so they produce the same hash. A single uppercase letter or a trailing newline produces a completely different hash. The last two rows show the UTF-8 conversion: the 😀 emoji is 4 bytes (f0 9f 98 80).
Calculate SHA-512 in the command line
SHA-512 checksums can be calculated using built-in tools on Linux, macOS, and Windows. For text input, hello without a trailing newline produces the SHA-512 hash 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043.
Linux
# Hash a file
sha512sum file.iso
# Check files against a published checksum file
sha512sum -c SHA512SUMS --ignore-missing
# Hash text without a trailing newline
printf 'hello' | sha512sum
macOS
# Hash a file
shasum -a 512 file.iso
# Check files against a published checksum file
shasum -a 512 -c SHA512SUMS
# Hash text without a trailing newline
printf 'hello' | shasum -a 512
Windows
# PowerShell
Get-FileHash file.iso -Algorithm SHA512
# Command Prompt
certutil -hashfile file.iso SHA512
PowerShell prints the hash in uppercase. Hex hashes are not case-sensitive, so you can paste it into Verify hash as it is.
Python
import hashlib
# Text
print(hashlib.sha512('hello'.encode('utf-8')).hexdigest())
# File (Python 3.11+)
with open('file.iso', 'rb') as f:
print(hashlib.file_digest(f, 'sha512').hexdigest())
Frequently asked questions
Can SHA-512 be reversed?
No. SHA-512 is a one-way hash function. The original input cannot feasibly be calculated from the digest alone, although common or predictable inputs may be discovered by guessing and comparing hashes.
Can two different inputs have the same SHA-512 hash?
Yes, collisions must exist mathematically because the output has a fixed length. However, no practical collision attack against the full SHA-512 algorithm is known.
Why do two SHA-512 calculators give different results?
SHA-512 produces identical digests for identical input bytes. Check for differences in spaces, line breaks, capitalization, and text encoding. This calculator uses UTF-8.
Related tools
- SHA-256 hash calculator — Generate 256-bit SHA-2 hashes displayed as 64 hexadecimal characters.
- SHA-384 hash calculator — Generate 384-bit SHA-2 hashes displayed as 96 hexadecimal characters.
- SHA-224 hash calculator — Generate 224-bit SHA-2 hashes displayed as 56 hexadecimal characters.
- SHA-1 hash calculator — Generate SHA-1 hashes for legacy compatibility.
Last updated: