DevToolPal
EN

SHA-512 Hash Generator

Calculate the SHA-512 hash of any text, line by line if needed. Hex or Base64 output, computed in your browser.

Runs locally, never uploaded

Options

Output

Text

0 chars · 0 B

SHA-512 hash

0 chars · 0 B

What it does

This tool calculates the SHA-512 hash of any text. SHA-512 is a cryptographic hash function designed in 2001 by the NSA, published by NIST as part of SHA-2. It turns input of any length into a fixed 512-bit value, shown as 128 hexadecimal characters. The same input always gives the same hash, and changing a single character changes the hash completely.

How to use

  1. Type or paste text into the input box, drop a text file on it, or press Sample.
  2. The SHA-512 hash appears as you type.
  3. Choose Hex or Base64 output, and turn on Uppercase hex if the system you’re comparing with uses capital letters.
  4. Turn on Hash each line separately to hash a list, such as many passwords or IDs, in one go. Each line gets its own hash on the matching output line.

The text is hashed as UTF-8, exactly as typed, including spaces and line breaks. To hash a file’s contents or use other algorithms, see the general hash generator.

Example

Input:  The quick brown fox jumps over the lazy dog
SHA-512: 07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6

Add a period at the end and the hash changes completely. This “avalanche effect” is what makes hashes useful for spotting any change in data.

Where SHA-512 is used

SHA-512 is used in npm package integrity fields (sha512-…), Subresource Integrity, Linux password hashes ($6$ in /etc/shadow, which runs SHA-512 thousands of times), Ed25519 signatures, HMAC-SHA512 API signing and file checksums.

Security

SHA-512 is secure. It belongs to the same SHA-2 family as SHA-256, with a larger internal state and output. It is often faster than SHA-256 on 64-bit processors without SHA hardware instructions. If you need a shorter value, SHA-512/256 or plain SHA-256 is usually enough. For passwords, use bcrypt, scrypt or Argon2.

FAQ

› Is my text sent to a server?

No. The SHA-512 hash is computed in your browser, so passwords, keys and private text never leave your device.

› Can a SHA-512 hash be decrypted?

No. SHA-512 is a one-way hash, not encryption. Sites that claim to decrypt it look the value up in tables of hashes of common words, which only works for short or common inputs.

› Why doesn't my SHA-512 match another tool's?

Usually the input differs by invisible characters: a trailing newline (echo adds one, use echo -n), Windows CRLF line endings, a leading space, or a different text encoding. This tool hashes the exact UTF-8 bytes of the text box.

› How long is a SHA-512 hash?

512 bits: 128 hexadecimal characters, or 88 characters in Base64.

› Is SHA-512 secure?

SHA-512 is secure. It belongs to the same SHA-2 family as SHA-256, with a larger internal state and output. It is often faster than SHA-256 on 64-bit processors without SHA hardware instructions.