What is SHA-512?
SHA-512 produces a 512-bit digest (128 hex characters). It works on 64-bit words, so on 64-bit processors it is often faster than SHA-256 for long inputs.
Linux distributions publish SHA-512 checksums of their ISO images (SHA512SUMS): hash the text here to check a published value, or use the command in the code section for the file itself.
This page opens the hash generator with SHA-512 on top and highlighted. The text is encoded as UTF-8 and hashed in your browser as you type; nothing is sent anywhere.
SHA-512 at a glance
| SHA-512 | |
|---|---|
| Digest size | 512 bits (128 hex characters) |
| Standard | FIPS 180-4 |
| Published | 2001 |
| Secure against attackers | yes |
| Where it is used | file integrity, Ed25519 signatures (internally), sha512crypt ($6$) password lines of Linux |
| Good for passwords | no: use bcrypt or Argon2 |
How to generate a SHA-512 hash
- Type or paste the text in the input box.
- Read the SHA-512 row, at the top of the list; it updates as you type.
- To check a known SHA-512, paste it in the comparison field: the matching row lights up.
Example
SHA-512 of three inputs, computed by the same code as the tool:
| Input | SHA-512 (hex) |
|---|---|
hello world | 309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f |
| (empty text) | cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e |
stdlib.tools | bfd43da572d0088fbf77835aaf4601e2f68aa3d89b065c14beac881b7a290f861baca0f277c1b0de15ae067d2522670ab7148da9498716c61c3e988dbe3809ef |
A single invisible line break changes everything: hello world followed by a newline (what echo prints) gives db3974a97f2407b7cae1ae637c0030687a11913274d578492558e39c16c017de84eacdc8c62fe34ee4e12b4b1428817f09b6a2760c3f8a664ceae94d2434a593. When your value does not match, check trailing spaces and line breaks first.
SHA-512 in code
Node.js
import { createHash } from 'node:crypto';
createHash('sha512').update('hello world').digest('hex');Python
import hashlib
hashlib.sha512(b"hello world").hexdigest()Bash
printf 'hello world' | sha512sumFrequently asked questions
Is SHA-512 still secure?
Yes. Typical uses today: file integrity, Ed25519 signatures (internally), sha512crypt ($6$) password lines of Linux.
How long is a SHA-512 hash?
512 bits: 128 hexadecimal characters, or 88 characters in Base64 (with padding), such as MJ7MSJwS1utMxA9QyQLytNDtd+5RGnx6m808qG1M2G+YndNbxf9JlnDaNCVbRbDP2DDoH2Bdz33FVC6TrpzXbw== for hello world.
Why does my SHA-512 differ from another tool?
The input differs: a trailing newline, spaces or another text encoding (UTF-8 here). Hex is case-insensitive.