SHA-512 hash generator
Type text or choose a file to get its SHA-512 hash in hex and Base64, and compare it with the checksum a publisher lists.
Runs in your browser. Your text and files are hashed on your device and never uploaded to EpiFive.
How to use it
- Choose Text and type, or A file and pick one. The SHA-512 hash appears straight away.
- Copy the hex, or use the Base64 form, which is what Subresource Integrity and package-lock.json use.
- Paste an expected checksum into the compare box to verify a download.
- Tap Show all algorithms to see MD5, SHA-1, SHA-256 and SHA-384 too.
SHA-512 in Subresource Integrity and npm
An integrity="sha512-…" attribute on a script tag, and the integrity field in package-lock.json, hold the Base64 form of a SHA-512 hash rather than hex. Choose the file here and copy the Base64 line, then add the sha512- prefix.
Verifying a checksum
Choose the downloaded file, paste the published SHA-512 into the compare box and look for the green match. Because the value is 128 characters long, comparing by eye is error-prone; let the compare box do it. A mismatch means the file is corrupted, incomplete or different from the release.
Security notes
SHA-512 is safe for checksums and signatures. Like every fast hash it is the wrong tool for passwords, and an unkeyed hash does not prove who published a file: if an attacker can change the download page, they can change the checksum too. Signed checksums (GPG or Sigstore) cover that case.
Test values
- SHA-512 of
abc:ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
Compare with the SHA-256 generator, or see all algorithms in the hash generator.
Related tools
- Hash generator: MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, and checksum verification.
- SHA-256 hash generator: SHA-256 hash of text or a file in hex and Base64, and verify a download against its published checksum.
- SHA-1 hash generator: SHA-1 hash of text or a file, as used by Git and older download pages, with checksum verification.
- MD5 hash generator: MD5 hash of text or a file, with checksum verification. For checksums only, not for passwords.
- Base64 encode and decode: Encode or decode Base64 text (UTF-8 safe) and convert files to and from Base64.
Questions people ask
What is SHA-512?
SHA-512 is the largest member of the SHA-2 family. It produces a 512-bit hash written as 128 hexadecimal characters. Like SHA-256, any change to the input changes the whole hash, and there is no known way to find two inputs with the same SHA-512.
Is SHA-512 more secure than SHA-256?
Both are considered secure, and SHA-256 is already far beyond what any attacker can break. SHA-512 gives a bigger safety margin and is often faster than SHA-256 on 64-bit processors because it works on 64-bit words. Pick the one your publisher or protocol uses.
Can I store passwords with SHA-512?
Not as a plain hash. SHA-512 is fast, so leaked hashes can be guessed at enormous speed. Linux’s sha512crypt adds a salt and thousands of rounds, which helps, but for new systems use Argon2, scrypt or bcrypt.
Where is SHA-512 used?
Download checksums (SHA512SUMS files from Linux distributions and Apache projects), the Subresource Integrity attribute in HTML (sha512-...), npm package integrity in package-lock.json, Ed25519 signatures internally, and HMAC-SHA512 in some APIs.
How do I get a SHA-512 hash from the command line?
On Windows, run certutil -hashfile file.zip SHA512, or Get-FileHash file.zip -Algorithm SHA512 in PowerShell. On macOS run shasum -a 512 file.zip, and on Linux run sha512sum file.zip.