sha512 hash generator online

Recommended

Create 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.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

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.

Formats for 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.

In short

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.

SecureNo practical attacks known. Fine for integrity checks and signatures.
Where you meet it
  • File checksums
  • Ed25519 signatures
  • HMAC-SHA512
  • Linux password hashes ($6$, with many rounds)
Try it

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.

Hash A…
Hash B…

Calculating…

"Decrypt" SHA-512?

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.

Use it in code

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.

PHP
echo hash('sha512', 'hello world');
Python
import hashlib

print(hashlib.sha512("hello world".encode()).hexdigest())
Node.js
import { createHash } from "node:crypto";

console.log(createHash("sha512").update("hello world").digest("hex"));
Browser
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(""));
Java
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+
  }
}
Go
package main

import (
	"fmt"
	"crypto/sha512"
)

func main() {
	fmt.Printf("%x\n", sha512.Sum512([]byte("hello world")))
}
Command line
printf '%s' 'hello world' | sha512sum

# macOS: printf '%s' 'hello world' | shasum -a 512
# File on Windows: certutil -hashfile file.zip SHA512
Test values

SHA-512 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputsha512
empty stringcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
abcddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
hello world309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f
The quick brown fox jumps over the lazy dog07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6

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.

Passwordsha512
123456ba3253876aed6bc22d4a6ff53d8406c6ad864195ed144ab5c87621b6c233b548baeae6956df346ec8c17f5ea10f35ee3cbc514797ed7ddd3145464e2a0bab413
passwordb109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1326af5a2ea6d103fd07c95385ffab0cacbc86
123456789d9e6762dd1c8eaf6d61b3c6192fc408d4d6d5f1176d0c29169bc24e71c3f274ad27fcd5811b313d681f7e55ec02d73d499c95455b6b5bb503acf574fba8ffe85
12345678fa585d89c851dd338a70dcf535aa2a92fee7836dd6aff1226583e88e0996293f16bc009c652826e0fc5c706695a03cddce372f139eff4d13959da6f1f5d3eabe
123453627909a29c31381a071ec27f7c9ca97726182aed29a7ddd2e54353322cfb30abb9e3a6df2ac2c20fe23436311d678564d0c8d305930575f60e2d3d048184d79
Common mistakes

Why your SHA-512 doesn't match

Length extension

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.

Not for passwords

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.

A line break sneaks in

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.

Same text, different 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.

Upper or lower case

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:".

This tool trims and uses CRLF

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.

Compare

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.

AlgorithmHashBits
sha2242f05477fc24bb4faefd86517156dafdecec45b8ad3cf2522a563582b224
sha256b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9256
sha384fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd384
sha512/22422e0d52336f64a998085078b05a6e37b26f8120f43bf4db4c43a64ee224
sha512/2560ac561fac838104e3f2e4ad107b4bee3e938bf15f2b15f009ccccd61a913f017256
sha512309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f512
Measured on your device

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.

FAQ

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.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.