Tools

SHA-512 Hash Generator

SHA-512 and SHA-384 hashes of text or files

How to generate a SHA-512 hash

  1. Type or paste text, or switch to File and drop a file.
  2. The 128-character SHA-512 hash is shown first; SHA-384 and the other algorithms are listed below it.
  3. Choose Base64 output if you need a Subresource Integrity value or a compact form, and copy the result.

SHA-512 and SHA-384

SHA-512 is the 512-bit member of the SHA-2 family. It is as secure as SHA-256 with a larger margin, and on 64-bit processors it is often faster, because it works on 64-bit words. SHA-384 is a truncated version of SHA-512 with different starting values.

You will find SHA-512 in Linux password hashing schemes ($6$ in /etc/shadow, which adds salt and many rounds), in package managers such as npm's integrity fields, Debian and Arch Linux release checksums, and in Subresource Integrity attributes like integrity="sha384-…" for scripts loaded from CDNs.

To create an SRI value, hash the exact file, choose Base64 output and prefix it with sha384- or sha512-. Hashing is done with your browser's Web Crypto API, and nothing you hash is uploaded.

FAQ

What is the SHA-512 of "abc"?

It begins ddaf35a193617aba and ends 2a9ac94fa54ca49f; the full 128-character value is the FIPS 180 test vector.

Is SHA-512 more secure than SHA-256?

Both are considered secure. SHA-512 has a larger output and security margin, but SHA-256 is more than enough for nearly all uses.

How do I compute SHA-512 in a terminal?

Linux: sha512sum file. macOS: shasum -a 512 file. Windows PowerShell: Get-FileHash file -Algorithm SHA512.