SHA-512 Hash Generator - Generate SHA-512 Hashes Online
—Generate a SHA-512 Hash
Type or paste text and the 128-character SHA-512 digest appears below.
The input is encoded as UTF-8 and hashed with the browser's Web Crypto
API, so it matches printf '%s' "text" | sha512sum and
hashlib.sha512(text.encode()).hexdigest(). Nothing is
uploaded.
Where You See SHA-512
- npm and Yarn lockfiles. Every package in
package-lock.jsonhas anintegrity: "sha512-..."field: the Base64 SHA-512 of its tarball. npm refuses to install a package whose hash does not match. - Linux password hashes. Entries in
/etc/shadowthat start with$6$use SHA-512 crypt: a random salt and 5,000 rounds of SHA-512 by default. Several recent distributions have moved to yescrypt ($y$), but$6$is still common. - Ed25519 signatures. The signature scheme behind modern SSH keys uses SHA-512 internally.
- Release checksums. Some projects publish
.sha512files instead of, or alongside, SHA-256.
SHA-512, SHA-384 and SHA-512/256
SHA-384 and SHA-512/256 are both SHA-512 run with different starting values and cut short to 384 or 256 bits. They keep SHA-512's 64-bit speed profile with a shorter output, and unlike plain SHA-512 or SHA-256 the truncated versions are not open to length-extension attacks. SHA-384 is available in the multi-hash generator; Web Crypto does not provide SHA-512/256.
Hex or Base64
A SHA-512 digest is 64 bytes. This page shows it as hex. npm, SRI
attributes and many APIs show the same bytes as Base64, which is
shorter: the hex hash of hello above becomes
m3HSJL1i83hdltRq0+o9czGb... in Base64. If two values
look nothing alike, check whether one is hex and the other Base64
before assuming the inputs differ.
Hashing Is Not Encryption
A SHA-512 hash cannot be turned back into its input. The
$6$ format shows the right way to use a fast hash for
passwords: add a unique salt so precomputed tables are useless, and
repeat the hash thousands of times so each guess costs more. For
reversible encoding use Base64, and to
sign messages with a key use the
HMAC-SHA512 generator. For most
new projects SHA-256 is
the more common choice.
Related Tools
JWT Decoder
Decode JSON Web Tokens and inspect header, payload and signature.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encode / Decode
Percent-encode or decode URLs and query-string parameters safely.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.