Skip to content

SHA-512 hash generator

Free, no sign-up Runs in your browser

Type or paste text and get its SHA-512 hash as 128 hex characters and as Base64 while you type. Computed with Web Crypto in your browser; nothing is sent.

Hashed in your browser as UTF-8, exactly as typed: a trailing space or line break changes the hash.

SHA-512 (hex)
The result appears here.
SHA-512 (Base64)
The result appears here.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the SHA-512 hash generator

  1. Type or paste the text. It is hashed as UTF-8, exactly as entered.
  2. Read the hash as 128 hex characters, or as Base64.
  3. Copy the form you need with the button above it.

About this tool

SHA-512 is the largest member of the SHA-2 family: it reduces any input to 512 bits, written as 128 hex characters. It follows the same design as SHA-256 but works on 64-bit words and runs 80 rounds on 1024-bit blocks. On 64-bit processors without dedicated SHA instructions that makes it faster than SHA-256 on long inputs, which is one reason Linux distributions publish SHA512SUMS files.

You meet it in a few specific places. Ed25519 signatures use SHA-512 inside. Subresource Integrity accepts sha512 hashes, and npm lockfiles store them in the integrity field. HMAC-SHA-512 signs tokens as HS512. For plain integrity checking, SHA-256 and SHA-512 are both far beyond any known attack; pick the one the other side expects.

A longer hash is not a reason to use it for passwords. SHA-512 is as fast as SHA-256 for an attacker with graphics cards, so password hashes need Argon2id, bcrypt or scrypt instead. The sha512crypt format in /etc/shadow is a different thing: a salted scheme that runs SHA-512 thousands of times. And like every Merkle-Damgård hash, plain SHA-512 of a key plus a message is open to length extension, so use HMAC.

Sources

Questions

Is SHA-512 more secure than SHA-256?

It has a larger output and a larger security margin on paper: 256-bit collision resistance against 128-bit. In practice both are out of reach of any known attack, so the choice is about compatibility and speed. Neither is suitable for hashing passwords directly.

Is SHA-512 faster than SHA-256?

On 64-bit CPUs without SHA extensions, yes for long inputs, because it processes twice as many bytes per block with 64-bit arithmetic. On processors with SHA-NI or ARM’s SHA-256 instructions, SHA-256 is usually faster. For short inputs the difference does not matter.

How long is a SHA-512 hash?

It is 512 bits, which is 64 bytes: 128 characters in hex, or 88 in Base64 with padding. If a value is 128 hex characters long it is most likely SHA-512, though SHA3-512 and BLAKE2b have the same length.

What are SHA-512/256 and SHA-384?

They are SHA-512 with different starting values and a shortened output. SHA-384 keeps 384 bits and SHA-512/256 keeps 256. Because part of the internal state is never revealed, both resist the length-extension attack that applies to SHA-256 and SHA-512.

Related tools