FormatterHQ

SHA-512/256 Hash Generator

Compute SHA-512/256 digests: a 256-bit hash with SHA-512’s 64-bit performance and built-in resistance to length-extension attacks.

Loading tool…
Ready.

How to use the SHA-512/256 Hash Generator

  1. Type or paste text into the input box, or switch the source to File and choose a file — it is hashed locally, never uploaded.
  2. Read the main hash at the top — the table below shows the same input under every other common algorithm. Tick Uppercase hex if you need capitals.
  3. To verify a value, paste it into Compare with an expected hash — the tool reports a match, or which algorithm it matches instead. Copy any row with its Copy button.

SHA-512/256 hash generator

SHA-512/256 gives you a 256-bit digest — the same size as SHA-256 — computed with the SHA-512 engine and its own initial values. Standardised in FIPS 180-4 in 2012, it combines SHA-512’s speed on 64-bit processors with a shorter output and immunity to length-extension attacks. This SHA-512/256 generator hashes text or files locally.

Example

Input:

The quick brown fox jumps over the lazy dog

SHA-512/256 hash:

dd9d67b371519c339ed8dbd25af90e976a1eeefd4ad3d889005e532fc5bef04d

Although both are 64 hex characters long, this is unrelated to SHA-256 of the same input, which is d7a8fbb307d7809469ca9abcb0082e4f…. Always label which algorithm produced a 256-bit hash.

At a glance

PropertyValue
Digest size256 bits (32 bytes, 64 hex characters)
Internal state512 bits; 80 rounds on 64-bit words
Collision resistanceAbout 128 bits
Length extensionResistant
StandardFIPS 180-4 (2012)

Why it exists

SHA-256 and SHA-512 are Merkle–Damgård hashes whose output is their full internal state. That allows a length-extension attack: from H(secret + message) an attacker can compute H(secret + message + padding + extra) without the secret. HMAC avoids the problem, but naïve constructions keep appearing in the wild. SHA-512/256 closes the hole at the algorithm level by hiding half of the state, and it is frequently faster than SHA-256 in software on 64-bit machines.

Where it is used

  • OpenZFS, whose sha512 checksum option is implemented as SHA-512/256.
  • Blockchain projects such as Algorand, which use SHA-512/256 for addresses and transaction IDs.
  • Protocols that want a 256-bit hash with conservative security properties without switching to SHA-3.

A quick test vector: the SHA-512/256 of abc is 53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23. If your library produces this value, it implements the real algorithm rather than a truncated SHA-512.

Because the all-hashes table lists SHA-256 right next to the SHA-512/256 result, it is also a handy way to show colleagues why two “256-bit SHA” values from different systems never match.

Using it in code

OpenSSL: openssl dgst -sha512-256 file. Go: sha512.Sum512_256(data). Java 9+: MessageDigest.getInstance("SHA-512/256"). Python: hashlib.new('sha512_256') where OpenSSL provides it. Note that truncating a normal SHA-512 hash to 64 characters does not produce SHA-512/256.

It is still a fast general-purpose hash, so it is not suitable for passwords; use bcrypt or Argon2id. The hash is computed in your browser.

Three “256-bit SHA” values for the same input

For the input abc, three plausible-looking 64-character results come from three different calculations. Only the last one is SHA-512/256:

CalculationResult (starts with)
SHA-256ba7816bf8f01cfea…
SHA-512, cut to 64 charactersddaf35a193617aba…
SHA-512/25653048e2681941ef9…

The middle row is the common mistake when a library lacks SHA-512/256: truncating the output of SHA-512 skips the different initial values that define the real algorithm. Paste a value into Compare with an expected hash and the tool tells you which of these algorithms produced it.

Frequently asked questions

Is SHA-512/256 better than SHA-256?
It offers the same 256-bit output and 128-bit collision resistance, plus resistance to length extension and often better speed on 64-bit CPUs without SHA hardware. Both are secure.
Is SHA-512/256 the first half of SHA-512?
No. It uses different initial values, so its output is unrelated to the SHA-512 digest of the same input.
Where is SHA-512/256 used?
In blockchains such as Algorand, as a checksum option in OpenZFS, and in protocols that want a length-extension-resistant 256-bit hash.
Is it available in all libraries?
Support is good in OpenSSL, Go and Java, but less universal than SHA-256, so check your platform before relying on it.

Last updated September 26, 2026

Related tools

SHA3-256 Hash Generator Generate the SHA3-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA-512/224 Hash Generator Generate the SHA-512/224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA-512 Hash Generator Generate the SHA-512 hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. SHAKE-256 Hash Generator Generate SHAKE-256 extendable-output (XOF) hashes of any length from text or files. SHAKE-128 Hash Generator Generate SHAKE-128 extendable-output (XOF) hashes of any length from text or files. SRI Hash Generator Generate Subresource Integrity (SRI) sha384 hashes and ready-to-paste <script> or <link> tags with integrity and crossorigin attributes. SSH Key Generator Generate OpenSSH key pairs (Ed25519, RSA, ECDSA) in id_ed25519 / id_rsa format with fingerprint — created locally, like ssh-keygen. Whirlpool Hash Generator Generate the Whirlpool hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. WordPress Password Hash Checker Check if a password matches a WordPress user_pass hash ($wp$ bcrypt, $P$ phpass or legacy MD5). WordPress Password Hash Generator Create a WordPress password hash for the wp_users table: bcrypt for WordPress 6.8+ or phpass for older versions. SSL Certificate Decoder (X.509) Decode PEM or DER X.509 SSL/TLS certificates: subject, issuer, SANs, validity, key type, extensions and SHA-256 fingerprints. xxHash Generator Generate xxHash XXH32, XXH64, XXH3 and XXH128 hashes with an optional seed.