SHA-512 Hash Generator
Make a SHA-512 hash of any text or file, check a download against its checksum, and sign messages with HMAC-SHA512. Everything runs in your browser.
All SHA hashes of this text
🔒 Everything runs in your browser. Your text, keys and files are never uploaded.
Free SHA-512 Hash Generator
This free SHA-512 hash generator creates the SHA-512 hash of any text or file: a 512-bit fingerprint, written as 128 hex characters, from the strongest member of the SHA-2 family. Type or paste text and the hash appears as you type. Drop in files of any size to get their SHA-512 checksums and compare them with the expected value or a checksum file. You can also make HMAC-SHA512 signatures with a secret key. Everything runs in your browser, and nothing is uploaded.
What is SHA-512?
SHA-512 is a cryptographic hash function from the SHA-2 family, defined by NIST in the FIPS 180-4 standard. It reads data of any length and returns a 512-bit (64-byte) value. In hex that is 128 characters, and in Base64 it is 88 characters. The SHA-512 hash of the word hello is:
9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
SHA-512 works like SHA-256 but on a larger scale. It splits the input into 128-byte blocks instead of 64-byte blocks, does its math on 64-bit words instead of 32-bit words, and runs 80 rounds per block instead of 64. The longer result gives an even bigger safety margin: there is no known practical way to find two inputs with the same SHA-512 hash, or an input that matches a given hash.
How to create a SHA-512 hash
- Check that SHA-512 is selected under Algorithm.
- Type or paste text into the Text to hash box. The SHA-512 hash appears right away.
- Choose a Hash format: lowercase hex, UPPERCASE hex or Base64. Base64 is shorter, which is handy when the hash has to fit into a header or a URL.
- Click Copy hash.
Need hashes for a whole list? Turn on Hash each line separately to get one SHA-512 hash per line.
How to check a file against its SHA-512 checksum
- Open the Files tab and drop the file, or click to choose it. Big files are read in pieces with a progress bar, so disk images and backups of several gigabytes work too.
- Paste the SHA-512 value from the download page into Expected hash.
- A green Matches the expected hash label means the file is complete and unchanged.
Got a checksum list such as SHA512SUMS or backup.tar.sha512? Drop it in together with the files. Each file is checked against its own line, and the tool switches to SHA-512 by itself when the list holds 128-character hashes.
How to make an HMAC-SHA512 signature
- Turn on Use a secret key (HMAC).
- Enter the secret key, and set Key is to Hex bytes or Base64 if that’s how your key is written.
- Type the message. The HMAC-SHA512 value appears below it.
HMAC-SHA512 signs a message with a key, so the receiver can check that it came from someone with the same key and wasn’t changed. Payment and exchange APIs often use it to sign requests, and JSON Web Tokens use it in the HS512 algorithm.
Where SHA-512 is used
- File checksums for operating system images, backups and archives.
- Password storage schemes that run SHA-512 thousands of times with a salt, as many Unix-like systems do for their password files.
- Digital signatures. The Ed25519 signature system uses SHA-512 inside.
- API and webhook signatures with HMAC-SHA512.
- Key derivation, for example PBKDF2 and HKDF with SHA-512.
Features
Live hashing
The SHA-512 hash updates with every keystroke, with the length and number of input bytes shown above it.
Text, hex or Base64 input
Text is hashed as UTF-8 bytes. Set Input is to Hex bytes or Base64 to hash raw binary data, such as a key or a value from a log.
Compare and find the difference
Paste a hash into Compare with a hash. If it doesn’t match, the tool tries the common reasons, such as a line break at the end, extra spaces, Windows line breaks or a hash from another SHA algorithm, and tells you which one it is.
SHA-384 and the other SHA hashes too
The All SHA hashes of this text list shows SHA-1, SHA-224, SHA-256 and SHA-384 next to SHA-512, each with a Copy button.
Checksum files
Download the hashes of all your files as a checksum file, one line per file with the hash, two spaces and the file name, or copy them all at once.
SHA-512 vs. SHA-256
- Length: SHA-512 gives 128 hex characters, SHA-256 gives 64.
- Security: both have no known practical weakness. SHA-512 has a larger safety margin, which matters for long-term use.
- Speed: SHA-512 uses 64-bit math, so on many 64-bit processors native SHA-512 code can be as fast as SHA-256, or faster. In a web browser, as in this tool, SHA-256 is usually quicker.
- Use: SHA-256 is the most common choice for checksums and certificates. Choose SHA-512 when a system asks for it, or when you want the longest hash.
SHA-384 is SHA-512 with different starting values, cut down to 384 bits. Switch to it with one click under Algorithm.
Why doesn’t my SHA-512 hash match?
The hash changes with every byte, so look for differences you can’t see: a line break at the end (a terminal’s echo adds one unless you use echo -n), spaces at the start or end, Windows line breaks (CRLF) or a different algorithm. Compare with a hash checks these for you. Hex hashes are compared without regard to upper or lower case.
Is it private?
Yes. The SHA-512 hash generator runs entirely in your browser. Your text, keys and files are hashed on your own device and never sent to us or anyone else. The tool remembers settings such as the hash format, but never your text, keys or files.
Frequently asked questions
Is this SHA-512 hash generator free?
Yes. It’s free, with no sign-up and no limits on text or file size.
How long is a SHA-512 hash?
SHA-512 gives 512 bits, which is 64 bytes. That is 128 characters in hex or 88 characters in Base64, including the padding.
Can a SHA-512 hash be decrypted?
No. SHA-512 is a one-way function, so there is no key and no way to turn the hash back into the text. Short or common inputs can still be found by guessing and comparing hashes.
Is SHA-512 better than SHA-256?
Both are secure. SHA-512 gives a longer hash and a larger safety margin; SHA-256 is shorter and more widely used. Use whichever the system you work with expects.
How do I verify a file with SHA-512?
Open the Files tab, drop the file and paste the expected SHA-512 value into Expected hash. A green label means it matches. You can also drop a SHA512SUMS or .sha512 file together with the files it lists.
Is SHA-512 good for storing passwords?
Not on its own. A single SHA-512 hash is fast to compute, so attackers can test many guesses quickly. Password storage should use a slow, salted method, such as many rounds of SHA-512 with a salt, or a dedicated password-hashing function.
What is HMAC-SHA512?
HMAC-SHA512 is a signature made by hashing a message together with a secret key. It proves the message came from someone who knows the key and wasn’t changed. Turn on Use a secret key (HMAC) to create one.
Are my text and files uploaded?
No. All hashing happens in your browser, and nothing you enter or drop in leaves your device.
