Hash Generator (SHA-1 / SHA-256 / SHA-384 / SHA-512)
Compute SHA-1, SHA-256, SHA-384 or SHA-512 hashes of text or of a file up to 512 MB, and show the digest as lowercase hex, uppercase hex or Base64. Paste an expected digest to verify a checksum. Hashing runs in your browser through the Web Crypto API, so neither your text nor your file is uploaded.
How to use
- Choose Text or File as the source.
- Type your text, or drop a file on the drop zone or click it to select one.
- Pick the algorithm and output format; the digest appears automatically.
- Click Copy, or paste a known value into the comparison field to check whether the digests match.
Example
Input
hello world
Algorithm: SHA-256 · Output format: HexOutput
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
Base64: uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek=Frequently asked questions
Does it support MD5?
No. The tool offers SHA-1, SHA-256, SHA-384 and SHA-512, which are the digest algorithms provided by the browser's Web Crypto API.
Which algorithm should I use?
Use SHA-256 or stronger for new work. SHA-1 is included for compatibility with legacy systems, but it is no longer considered collision-resistant.
How do I verify a file checksum?
Choose File, select the file and the algorithm the publisher used, then paste the published checksum into the comparison field. Surrounding whitespace and letter case are ignored, and the tool tells you whether the digests match.
Will the result match sha256sum or openssl?
Yes, for the same bytes. Text is encoded as UTF-8 before hashing. Note that echo adds a trailing newline, which changes the hash, so use echo -n when comparing on the command line.