Format Code Now
/
Hash & generateSHA-512 Hash Generator Next: HMAC Generator ›

SHA512 Hash Generator

HG-04

Paste text to get its SHA-512 hash as 128 hex characters or as Base64. Switch the algorithm to SHA-384 for a shorter value from the same family.

Runs in your browser. Nothing is uploaded.

Text (hashed as UTF-8)

SHA-2 hash

How to use it

  1. Type or paste your text into the input box. Sample loads the quick brown fox example.
  2. Choose SHA-512 or SHA-384 under Algorithm.
  3. Pick lowercase hex, uppercase hex or Base64 under Output. The hash updates as you type.
  4. Copy the hash, or download it as a .txt file.

SHA-512 and SHA-384 compared

Both belong to the SHA-2 family and use the same internal steps. SHA-512 gives 512 bits, which is 128 hex characters or 88 characters of Base64. SHA-384 gives 384 bits, which is 96 hex characters or 64 characters of Base64. SHA-384 starts from different constants and cuts the result short, so a SHA-384 value is not simply the first part of a SHA-512 value. Pick whichever length the system you are matching expects.

What the tool does to your text

Your text is encoded as UTF-8 and hashed by your browser's built-in Web Crypto, exactly as typed. A trailing space or newline changes the result, and Ignore one trailing line break removes a single final break. Empty input is valid. The tool hashes text, not binary files. If your value differs from sha512sum or a library call, check for a newline added by echo, Windows CRLF line endings or a byte order mark.

Not a password hash

SHA-512 has no known practical collision attack, so it suits checksums, fingerprints and signature schemes. It is fast, though, and fast is the wrong property for storing passwords: an attacker can test guesses at high speed. Passwords need a slow, salted function such as bcrypt, scrypt or Argon2. A longer hash does not fix that, and this tool does not offer those functions.

Questions people ask

How do I generate a SHA-512 hash online?

Type or paste your text into the input box and the SHA-512 appears straight away as 128 hex characters. Change the output to uppercase hex or Base64 if you need to, then copy it or download it as a .txt file. The hash is computed in your browser.

What is the SHA-512 hash of an empty string?

It begins cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce and runs to 128 hex characters. Clear the input box and this tool shows the full value, because empty text is valid input.

What is the difference between SHA-384 and SHA-512?

SHA-384 is a variant of SHA-512 with different starting values and a result cut to 384 bits, so it is 96 hex characters instead of 128. The two give unrelated values for the same text. Choose the one the system you are matching asks for.

Is SHA-512 stronger than SHA-256?

It has a longer output, but both are considered secure and neither has a known practical collision attack. SHA-512 can be faster than SHA-256 on 64-bit processors. For most checksums either works, and the choice usually comes from what a protocol or system requires.

Why does my SHA-512 not match sha512sum?

The two tools hashed different bytes. The usual causes are a newline added by echo, Windows CRLF line endings, a hidden byte order mark, or a non-UTF-8 encoding. Use echo -n on the command line, or tick Ignore one trailing line break here, and compare again.

How long is a SHA-512 hash?

A SHA-512 hash is 512 bits, or 64 bytes. In hex it is always 128 characters, and in Base64 it is 88 characters ending in two = signs. The length is the same for any input. SHA-384 values are 96 hex characters or 64 Base64 characters.

About this tool

SHA-512 and SHA-384 are computed by your browser's built-in Web Crypto. They are sound general-purpose hashes; SHA-384 is SHA-512 with different starting values and a shorter output. They are too fast to use alone for storing passwords: that needs a slow, salted function such as bcrypt, scrypt or Argon2, which this tool is not. The text is hashed exactly as typed, as UTF-8, so a trailing line break or a space changes the result; "Ignore one trailing line break" removes one. It hashes text, not files: a file saved with different line endings would give a different hash than the same words typed here.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.