SHA-512 Generator
Generate a SHA-512 digest from text with the Web Crypto API.
Your result will appear here…
How to use SHA-512 Generator
- Type or paste the text to hash.
- Select Generate.
- Copy the 128 hexadecimal characters after the label.
Example
Input / settings:
abc
Output:
SHA-512: ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
This is the SHA-512 test vector for abc published in RFC 6234, so you can check the tool against the standard's own value.
When to use
- Produce a long digest for a test value or documentation sample.
- Verify the tool against a published SHA-512 test vector.
- Compare digests from another system that uses SHA-512.
Overview
SHA-512 is the 512-bit member of the SHA-2 family defined in FIPS 180-4 and RFC 6234. This tool encodes your text as UTF-8, computes the digest with the browser's Web Crypto API, and prints it as 128 hexadecimal characters after the label SHA-512:. It does not offer the shorter variants SHA-384 or SHA-512/256.
Supported input
text
Output details
hexadecimal SHA-512 digest
Common mistakes
- A SHA-512 digest is 128 hexadecimal characters, twice the length of SHA-256. A database column or form field sized for 64 characters is too short for it.
- Keeping only the first characters of the digest gives a shorter fingerprint with fewer bits. It is not SHA-384 or SHA-512/256, which are separate algorithms in FIPS 180-4, and it will not match values produced by them.
- The tool hashes text, always encoded as UTF-8. Bytes that come from a file or another encoding give a different digest unless they are identical to this text's UTF-8 bytes.
- Selecting a longer hash does not make a short or guessable input stronger. Anyone can compute the digest of a list of guesses and compare.
Practical tips
- Hash the text abc and compare it with the RFC 6234 value above before trusting a result from another implementation.
- When two systems disagree, check the final newline and the character encoding first.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers. Hashing runs locally in your browser through SubtleCrypto.digest, so the text is not uploaded. SHA-512 is a fast general-purpose hash, which is the wrong property for storing passwords: use a slow, salted password-hashing scheme such as Argon2id, as the OWASP cheat sheet describes.
References
- RFC 6234: US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)
- NIST FIPS 180-4: Secure Hash Standard
- MDN: SubtleCrypto.digest()
- OWASP Password Storage Cheat Sheet
Frequently asked questions
How many characters does a SHA-512 digest have?
128 hexadecimal characters, which is 512 bits. The tool shows them in lowercase after the SHA-512: label.
Where can I find a published SHA-512 value to compare against?
RFC 6234 lists test vectors, including the digest of abc that this page uses as its example.
Can this tool hash binary data?
No. It accepts text and hashes its UTF-8 bytes, so it cannot reproduce the digest of arbitrary binary content.