About the SHA512 Generator
SHA-512 produces a longer 128-character digest and is common in Linux package checksums, some password hashing schemes and high-security applications. This SHA512 generator calculates SHA-512 and SHA-384 hashes of text or files at once, in hexadecimal and Base64, and checks them against a checksum you paste: hello gives a SHA-512 hash beginning 9b71d224bd62f378. Files are read locally and never uploaded.
SHA-512 and SHA-384 belong to the SHA-2 family, alongside SHA-256, and remain secure: no practical attacks are known. SHA-512 is often faster than SHA-256 on 64-bit processors and is used for file checksums in Linux distributions, in digital signatures, and inside password hashing schemes such as sha512crypt and PBKDF2-HMAC-SHA512. SHA-384 is a shortened variant with a different starting value, popular in TLS.
The Base64 form is what Subresource Integrity attributes use, so a SHA-384 or SHA-512 Base64 hash of a script file can be pasted straight into an integrity attribute with the sha384- or sha512- prefix. Hashing uses your browser's Web Crypto, and nothing is uploaded.
For the most common SHA-2 hash, use the SHA-256 generator. To authenticate messages with a key, try the HMAC generator, and for legacy checksums, the SHA1 generator. Both digests update as you type, and files are read and hashed on your own device, so even confidential documents can be checked here without being uploaded anywhere.
How to use the SHA512 Generator
- Choose the inputPick Text or File.
- Enter the dataType or paste text, or choose a file; both hashes appear immediately.
- Pick the formatChoose lowercase or uppercase hex; Base64 is always shown.
- Compare or copyPaste a known checksum into the compare box, or copy a hash.
SHA512 Generator features
- SHA-512 and SHA-384 together
- Text or file input
- Hex in lowercase or uppercase
- Base64 for integrity attributes
- Compare with a known checksum
- Live update as you type
- Uses the browser's Web Crypto
- Nothing is uploaded
Common uses
- Verifying Linux ISO and package checksums
- Creating Subresource Integrity hashes for scripts
- Fingerprinting files and backups
- Checking API signatures during development
- Comparing outputs between systems
SHA-512 in practice: verifying a Linux download, password hash formats, package lock files, truncated variants and choosing a hash
SHA-512 is the longest member of the everyday SHA-2 family and appears in Linux distribution checksums, system password files, package managers and digital signatures. This guide walks through verifying an operating system download properly, explains what the $6$ prefix in Linux password files means, covers integrity values in package lock files and truncated variants, and offers practical guidance on choosing between SHA-256 and SHA-512.
A worked example: verifying a Linux download
Linux distributions publish a checksum file, often named SHA512SUMS, listing the SHA-512 of each download. After downloading an installer image and the checksum file into the same folder, the command sha512sum -c SHA512SUMS --ignore-missing checks the file and prints OK if it matches. For full assurance, distributions also sign the checksum file with their key, so verifying that signature proves the list itself came from the project and was not replaced along with the download.
The $6$ password format
Linux systems store password hashes in a file where entries beginning with $6$ use the SHA-512-based crypt scheme. That scheme is not a single SHA-512 of the password: it adds a random salt and repeats the hashing thousands of times by default, so each guess costs an attacker far more. A plain SHA-512 of a password, as produced here, is not equivalent and should never be stored as a password hash.
Package lock files
JavaScript package managers record an integrity value for each dependency, written as sha512 followed by a Base64 digest. When packages are installed, the downloaded files are checked against these values, so a tampered package is rejected. This is the same format used by integrity attributes on script tags, which is why the Base64 output is provided alongside hexadecimal.
Lengths and forms
A SHA-512 digest is 64 bytes, written as 128 hexadecimal characters or 88 Base64 characters. SHA-384 is 48 bytes, written as 96 hexadecimal characters or 64 Base64 characters. Checking the length of a value you have been given quickly tells you which algorithm and which form you need to compare against.
Truncated variants
The standard also defines SHA-512/256 and SHA-512/224, which use SHA-512's internal design with different starting values and shorter output. Simply cutting a SHA-512 result down to 64 characters does not produce SHA-512/256; the values differ completely. If a system specifies one of these variants, use a tool or library that implements it by name.
Signatures
Some modern signature schemes use SHA-512 internally, including Ed25519, widely used for SSH keys and software signing. You do not need to compute these hashes yourself when signing, but it explains why SHA-512 appears in the documentation of tools that do not otherwise mention hashing.
Choosing between SHA-256 and SHA-512
Both are secure for integrity checks. SHA-256 is the more common default and produces shorter values that are easier to display and compare. SHA-512 can be faster on 64-bit computers and is the natural choice when a standard or partner system specifies it. Consistency within a project matters more than the choice itself.
Common mistakes
- Checking a download without verifying the signature on the checksum file.
- Storing plain SHA-512 values as password hashes.
- Truncating SHA-512 output and calling it SHA-512/256.
- Comparing a Base64 integrity value with a hexadecimal one.
Related tools
To compare several algorithms at once, use Hash Generator. For older checksum lists, try MD5 Generator, and to convert binary data to text, Base64 Encoder.
HMAC with SHA-512
Some exchange and payment APIs require requests to be signed with HMAC-SHA512 rather than HMAC-SHA256. The process is the same, using a shared secret to sign the exact request content, only the hash function differs. When an API specifies SHA-512, using SHA-256 instead produces signatures that are simply rejected.
Detecting silent corruption
Backup and archiving tools often record checksums when files are stored. Running a periodic check against stored SHA-512 values detects silent corruption on ageing disks or in long-term storage, sometimes called bit rot, before a damaged file is needed. A file whose hash no longer matches can then be restored from another copy.
Comparing long values
Comparing 128 characters by eye is unreliable. Let the computer do it, using a checksum command's check mode, a text comparison tool or a script. Never compare only the first few characters when the check matters for security, because an attacker who can choose the content only needs to match what you actually look at.
Hashing in scripts
In Python, hashlib.sha512(data).hexdigest() gives the hexadecimal digest, and in Node.js, crypto.createHash('sha512').update(data).digest('hex') does the same. On Windows, PowerShell's Get-FileHash -Algorithm SHA512 hashes a file. Comparing script output with this tool for a sample text confirms your code is hashing the bytes you expect.
Recording which algorithm you used
When publishing or storing checksums, always state the algorithm next to the value, for example by naming the file SHA512SUMS or prefixing each value with sha512. A bare string of hexadecimal characters forces the reader to guess from its length, and guessing wrongly leads to false alarms about damaged files.
Privacy
Hashing uses your browser's Web Crypto. Text and files are processed on your own device and never uploaded.
Frequently asked questions
What is SHA-512?
SHA-512 is a member of the SHA-2 family of hash functions that produces a 512-bit digest, shown as 128 hexadecimal characters. It is one-way, collision-resistant and considered secure for all current uses.
What is the difference between SHA-512 and SHA-384?
SHA-384 uses the same algorithm as SHA-512 with different starting values and a shorter, 384-bit output. It offers a similar security margin with a shorter value, and is common in TLS and integrity attributes.
Is SHA-512 more secure than SHA-256?
Both are secure today. SHA-512 has a larger output, which gives more margin against future attacks, and is often faster on 64-bit computers. SHA-256 is more widely used and shorter to store.
How do I create a Subresource Integrity hash?
Hash the exact script or stylesheet file here, copy the SHA-384 or SHA-512 Base64 value, and write it as integrity="sha384-..." on the script or link tag. Any change to the file then makes the browser refuse to run it.
Should I hash passwords with SHA-512?
Not with plain SHA-512, which is too fast. Use a password hashing function such as Argon2, bcrypt, scrypt or PBKDF2 with many iterations and a unique salt for each password.
Why do I get a different hash from another tool?
Check for a trailing newline or space, or a different text encoding. This tool hashes text as UTF-8 exactly as typed, and files byte for byte.
Is my data uploaded?
No. Everything is calculated by code running in this page on your own device. Your text, files and keys are never uploaded, stored or logged, so it is safe to use with private data.
How long is a SHA-512 hash?
SHA-512 produces 512 bits, which is 64 bytes, written as 128 hexadecimal characters or 88 Base64 characters. SHA-384 produces 48 bytes, written as 96 hexadecimal characters or 64 Base64 characters, the form used in Subresource Integrity attributes.
Can I hash a large file?
Yes. Files of several hundred megabytes work in most modern browsers, limited mainly by your device's memory. The file is read locally and hashed with the browser's built-in Web Crypto, so it is fast and private.