sha512 hash generator online
RecommendedCreate the sha512 hash of any text: 128 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.
Compare, hash a file, copy any format
Type text in the tool above or choose a file. Case, spaces and prefixes like sha512: don't matter.
hello world- Hex
309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f- HEX (upper case)
309ECC489C12D6EB4CC40F50C902F2B4D0ED77EE511A7C7A9BCD3CA86D4CD86F989DD35BC5FF499670DA34255B45B0CFD830E81F605DCF7DC5542E93AE9CD76F- Base64
MJ7MSJwS1utMxA9QyQLytNDtd+5RGnx6m808qG1M2G+YndNbxf9JlnDaNCVbRbDP2DDoH2Bdz33FVC6TrpzXbw==- SRI (integrity attribute)
sha512-MJ7MSJwS1utMxA9QyQLytNDtd+5RGnx6m808qG1M2G+YndNbxf9JlnDaNCVbRbDP2DDoH2Bdz33FVC6TrpzXbw==
Files are read in your browser and never uploaded.
What is SHA-512?
SHA-512 is the 512-bit member of the SHA-2 family, written as 128 hex characters. It works on 64-bit words, so on 64-bit processors it is often faster than SHA-256. It is secure and used for file checksums, Ed25519 signatures and as the base of SHA-384 and SHA-512/256.
- File checksums
- Ed25519 signatures
- HMAC-SHA512
- Linux password hashes ($6$, with many rounds)
Change one letter, see what happens
A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.
……Calculating…
Is it a common password?
No one can decrypt a hash. What "decrypt" sites do is compare it with hashes of known words. This check does the same in your browser with about 11,000 common passwords, PINs and years, so you can see how quickly weak passwords fall.
Nothing is sent anywhere. The list is part of this page.
Free course: why hashes can’t be decrypted, and how to store passwords →
The same result in your code
Every snippet prints 309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('sha512', 'hello world');
import hashlib print(hashlib.sha512("hello world".encode()).hexdigest())
import { createHash } from "node:crypto"; console.log(createHash("sha512").update("hello world").digest("hex"));
const data = new TextEncoder().encode("hello world"); const buf = await crypto.subtle.digest("SHA-512", data); console.log([...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, "0")).join(""));
import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.HexFormat; public class Hash { public static void main(String[] args) throws Exception { byte[] digest = MessageDigest.getInstance("SHA-512") .digest("hello world".getBytes(StandardCharsets.UTF_8)); System.out.println(HexFormat.of().formatHex(digest)); // Java 17+ } }
package main import ( "fmt" "crypto/sha512" ) func main() { fmt.Printf("%x\n", sha512.Sum512([]byte("hello world"))) }
printf '%s' 'hello world' | sha512sum # macOS: printf '%s' 'hello world' | shasum -a 512 # File on Windows: certutil -hashfile file.zip SHA512
SHA-512 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | sha512 |
|---|---|
| empty string | cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e |
abc | ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f |
hello world | 309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f |
The quick brown fox jumps over the lazy dog | 07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6 |
SHA-512 hashes of the 5 most common passwords
These five lead the public lists of leaked passwords year after year, so their hashes are in every cracking list too. If you see one of these values in a database, the password is known. Paste one into the password check above to see it found in a split second.
| Password | sha512 |
|---|---|
123456 | ba3253876aed6bc22d4a6ff53d8406c6ad864195ed144ab5c87621b6c233b548baeae6956df346ec8c17f5ea10f35ee3cbc514797ed7ddd3145464e2a0bab413 |
password | b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1326af5a2ea6d103fd07c95385ffab0cacbc86 |
123456789 | d9e6762dd1c8eaf6d61b3c6192fc408d4d6d5f1176d0c29169bc24e71c3f274ad27fcd5811b313d681f7e55ec02d73d499c95455b6b5bb503acf574fba8ffe85 |
12345678 | fa585d89c851dd338a70dcf535aa2a92fee7836dd6aff1226583e88e0996293f16bc009c652826e0fc5c706695a03cddce372f139eff4d13959da6f1f5d3eabe |
12345 | 3627909a29c31381a071ec27f7c9ca97726182aed29a7ddd2e54353322cfb30abb9e3a6df2ac2c20fe23436311d678564d0c8d305930575f60e2d3d048184d79 |
Why your SHA-512 doesn't match
With SHA-256, SHA-512, SHA-1 and MD5, hash(secret + message) is not a safe signature: an attacker can append data and compute a valid hash without the secret. Use HMAC.
A fast hash lets attackers try billions of guesses per second. Store passwords with Argon2id, bcrypt or scrypt, which are slow on purpose and use a salt.
echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.
The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.
Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".
Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.
The SHA-2 family side by side
The same text, every SHA-2 algorithm. Shown for hello world; type in the tool above to use your text.
| Algorithm | Hash | Bits |
|---|---|---|
| sha224 | 2f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b | 224 |
| sha256 | b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 | 256 |
| sha384 | fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd | 384 |
| sha512/224 | 22e0d52336f64a998085078b05a6e37b26f8120f43bf4db4c43a64ee | 224 |
| sha512/256 | 0ac561fac838104e3f2e4ad107b4bee3e938bf15f2b15f009ccccd61a913f017 | 256 |
| sha512 | 309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f | 512 |
How fast is SHA-512?
Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.
Questions about SHA-512
Can SHA-512 be decrypted?
No. SHA-512 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" SHA-512 look the hash up in large tables of known inputs, which only works for short or common strings.
How long is a SHA-512 hash?
A SHA-512 hash is always 512 bits, written as 128 hexadecimal characters (64 bytes), no matter how long the input is.
Is SHA-512 secure?
Yes. No practical attack on SHA-512 is known, and it is approved for integrity checks and signatures. For passwords use a slow password hash instead.
Should I hash passwords with SHA-512?
No. SHA-512 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.
Is SHA-512 more secure than SHA-256?
It has a larger margin (256-bit instead of 128-bit collision resistance), but both are secure today. SHA-512 is often faster on 64-bit machines.