SHA-512 Hash Generator

Compute the 512-bit SHA-512 digest of any text or file without uploading it.

Loading tool…

About the SHA-512 Hash

SHA-512 is the widest member of the SHA-2 family: a 512-bit digest written as 128 hex characters or 88 Base64 characters. It works on 64-bit words and 128-byte blocks, so on 64-bit CPUs it is often faster than SHA-256 for large inputs. SHA-384, shown below the main result, is SHA-512 with different initial values, truncated to 384 bits.

Common uses include file checksums published by Linux distributions (sha512sum), npm's integrity field in package-lock.json (sha512-<base64>), Subresource Integrity, Ed25519 signatures (which use SHA-512 internally) and HMAC-SHA512 for API request signing.

The digest is computed with the browser's native crypto.subtle.digest('SHA-512', …) on the UTF-8 bytes of your text or on a file you select; nothing leaves your machine. A longer digest does not make it suitable for passwords: like SHA-256 it is fast, so use bcrypt or Argon2 for password storage.

How to use it

  1. Enter text or choose “Hash a file”.
  2. Read the SHA-512 digest.
  3. Use Base64 output for npm or SRI integrity strings.
  4. Copy the value.

Frequently asked questions

How do I check an npm integrity value?
npm uses sha512-<Base64 of the tarball's SHA-512>. Hash the .tgz file here, switch to Base64 and compare.
Is SHA-512 more secure than SHA-256?
It has a larger security margin, but both are unbroken and SHA-256 is already far beyond brute force. Choose based on compatibility and speed.
What is SHA-512/256?
A SHA-512 variant with different initial values truncated to 256 bits. It is not the same as SHA-256 and is not offered by Web Crypto.

Related tools