Home › Developer Tools › SHA-512 Hash Generator

SHA-512 Hash Generator

Type or paste text to see its SHA-512 hash instantly, or drop files to get their checksums. Switch to SHA-384, choose hex or Base64, add a key for HMAC, copy a ready-made Subresource Integrity value, and verify against a pasted hash. Nothing leaves your browser.

Last updated:

0 characters · 0 bytes
Advertisement
Advertisement

How to use the SHA-512 Hash Generator

  1. Choose Text or Files. Type or paste text, or drop one or more files onto the box.
  2. Pick the algorithm: SHA-512 (128 hex characters) or SHA-384 (96 hex characters).
  3. Choose the output: hex, optionally uppercase, or Base64. The SRI line shows the value for an integrity attribute.
  4. Optional: tick HMAC and enter a secret key to create a keyed signature.
  5. Paste an expected hash into the compare box to check a download, then copy or download the result.

SHA-512 and SHA-384 test vectors

Values from FIPS 180-4 examples and RFC 4231 style references, for checking an implementation. Type the input above without the quotes.

InputHash
SHA-512 of "" (empty)cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
SHA-512 of "abc"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
SHA-384 of "" (empty)38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
SHA-384 of "abc" as SRIsha384-ywB1P0WjXou1oD1pmsZQBycsMqsO3tFjGotgWkP/W+2AhgcroefMI1i67KE0yCWn
HMAC-SHA512, key "key", "The quick brown fox jumps over the lazy dog"b42af09057bac1e2d41708e48a902e09b5ff7f12ab428a4fe86653c73dd248fb82f948a549f7b791a5b41915ee4d1ec3935357e4e2317250d0372afa2ebeeb3a

SHA-2 output sizes

AlgorithmBlock sizeRoundsOutputHex lengthBase64 length
SHA-256512 bits64256 bits6444
SHA-3841024 bits80384 bits9664
SHA-5121024 bits80512 bits12888

SHA-512 on the command line

TaskCommand
Hash a file (Linux)sha512sum file.iso · sha384sum file.iso
Hash a file (macOS)shasum -a 512 file.iso
Hash a file (Windows PowerShell)Get-FileHash file.iso -Algorithm SHA512
Hash text without a newlineprintf '%s' 'abc' | sha512sum
SRI value for a scriptopenssl dgst -sha384 -binary app.js | openssl base64 -A
HMAC with OpenSSLprintf '%s' 'message' | openssl dgst -sha512 -hmac 'key'
Check a list of checksumssha512sum -c checksums.sha512

Frequently asked questions

What is SHA-512?

SHA-512 is a member of the SHA-2 family defined in FIPS 180-4. It processes data in 1024-bit blocks using 64-bit words over 80 rounds and outputs a 512-bit hash, written as 128 hexadecimal characters or 88 Base64 characters. For example, the SHA-512 of "abc" begins ddaf35a193617aba.

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

SHA-384 runs the same algorithm as SHA-512 but starts from different initial values and keeps only the first 384 bits of the result. That gives a 96-character hex hash. Because the output is truncated, SHA-384 is also resistant to length-extension attacks, and it is the most common choice for Subresource Integrity hashes.

Is SHA-512 more secure than SHA-256?

Both are considered secure, with no practical collision or preimage attacks known. SHA-512 has a larger output and security margin and is often faster than SHA-256 on 64-bit CPUs without SHA hardware instructions. For storing passwords neither is suitable on its own; use bcrypt, scrypt or Argon2.

How do I create a Subresource Integrity (SRI) hash?

An SRI value is the algorithm name, a dash and the Base64 hash of the exact file bytes, for example integrity="sha384-…". Open the Files tab, drop the script or stylesheet, and copy the SRI line. On the command line: openssl dgst -sha384 -binary file.js | openssl base64 -A.

Why does my SHA-512 differ from another tool?

Every byte counts. This tool hashes text exactly as typed, encoded as UTF-8. A trailing newline from echo, CRLF line endings or extra spaces produce a completely different hash. Use printf '%s' 'text' | sha512sum to hash text without a newline.

How do I check a SHA-512 checksum on my computer?

On Linux run sha512sum file, on macOS run shasum -a 512 file, and in Windows PowerShell run Get-FileHash file -Algorithm SHA512. For SHA-384 use sha384sum, shasum -a 384 or -Algorithm SHA384.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.Password GeneratorCreate strong passwords and passphrases.MD5 Hash GeneratorGenerate MD5 hashes of text, lines or files and verify checksums.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Binary TranslatorConvert text to binary, hex, octal and back.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.JWT DecoderDecode JSON Web Tokens, read the claims and expiry, and verify HS256 signatures.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.SSL Certificate ConverterConvert SSL certificates and keys between PEM, DER, PFX/P12 and P7B in your browser.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.
See all 65 Encoders, Hashes & Crypto →