Skip to content

↑↓ navigate ↵ open Esc close Search runs locally

SHA-512 Hash Generator (Text & Files)

Generate the SHA-512 hash of text or a file and verify SHA-512 checksums. SHA-512 is a secure SHA-2 hash with a 512-bit output, often faster than SHA-256 on 64-bit computers.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
Algorithms
0 BUTF-8
Hashes

    Runs in your browser. Files are never uploaded. Tip: drop a file to verify a download

    How to use the SHA-512 tool#

    1. Type or paste text, or drop a file onto the left box.
    2. The 128-character SHA-512 hash appears on the right.
    3. Paste an expected value into Compare with a checksum to verify a file.
    4. Select other algorithms in the top bar to compare SHA-512 with SHA-256 or SHA3-512.

    Examples#

    SHA-512 of a word

    Input
    hello
    Output
    9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

    Always 128 hex characters (512 bits).

    The classic test sentence

    Input
    The quick brown fox jumps over the lazy dog
    Output
    07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6

    A standard SHA-512 test value.

    SHA-512 of an empty string

    Input
    Output
    cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

    Seeing this value usually means empty input was hashed.

    What is SHA-512?#

    SHA-512 is a member of the SHA-2 family that produces a 512-bit hash, written as 128 hexadecimal characters. It was published by NIST in 2001 alongside SHA-256 and is fully secure: no practical attack is known.

    SHA-512 vs SHA-256#

    SHA-256SHA-512
    Output256 bits (64 hex)512 bits (128 hex)
    Internal word size32-bit64-bit
    Block size512 bits1024 bits
    Rounds6480
    Speed on 64-bit CPUsFastOften faster per byte
    Common useChecksums, certificates, BitcoinSignatures (Ed25519), Linux password hashes, large files

    Because SHA-512 works on 64-bit words, it often processes data faster than SHA-256 on modern 64-bit processors, even though its output is longer. On CPUs with dedicated SHA-256 instructions, SHA-256 is usually faster again.

    Truncated versions#

    SHA-384, SHA-512/256 and SHA-512/224 run the SHA-512 algorithm with different starting values and keep only part of the output. They get SHA-512's 64-bit speed with a shorter hash. SHA-384 is common in TLS.

    Where SHA-512 is used#

    • Ed25519 signatures, used by SSH keys and many modern systems, are built on SHA-512.
    • Linux passwords: the $6$ prefix in /etc/shadow means SHA-512-crypt, which applies SHA-512 thousands of times with a salt.
    • Checksums of large files and backups.

    SHA-512 in code#

    bash
    sha512sum file.iso            # Linuxshasum -a 512 file.iso        # macOSGet-FileHash .\file.iso -Algorithm SHA512   # PowerShell
    php
    hash('sha512', 'hello');
    python
    import hashlibhashlib.sha512(b'hello').hexdigest()
    javascript
    const hash = await crypto.subtle.digest('SHA-512', new TextEncoder().encode('hello'));

    Common errors and fixes#

    • My SHA-512 differs from the terminal

      echo adds a newline. Use echo -n or printf.

    • The checksum is 96 characters long

      That is SHA-384, a truncated SHA-512. Select SHA-384 in the top bar.

    • Can I use plain SHA-512 for passwords?

      No: it is fast and unsalted. Use bcrypt or Argon2, or at least SHA-512-crypt with many rounds.

    Frequently asked questions#

    How long is a SHA-512 hash?

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

    Is SHA-512 more secure than SHA-256?

    Both are secure. SHA-512 has a larger security margin, but SHA-256 is already far beyond any practical attack.

    Why is SHA-512 sometimes faster than SHA-256?

    It processes data in 64-bit words, which suits 64-bit processors, so it handles more bytes per step.

    Is my file uploaded?

    No. The hash is calculated in your browser.

    Your next tool is one search away.

    Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.

    Browse all tools

    Tip: press Ctrl D to bookmark dev247.