Skip to content
Categories
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hash values from text.
Overview
- Computes SHA-1, SHA-256, SHA-384, and SHA-512 hash values from the text you enter, all at once.
- A hash value is a one-way summary that always produces the same output for the same input and cannot be reversed back to the original text. It is used for things like detecting file tampering or verifying data integrity.
- Uses the browser's standard Web Crypto API, so the computation happens entirely in your browser.
Usage
- Enter the text you want to hash into the text area.
- Click the "Generate" button.
- All four hash values โ SHA-1, SHA-256, SHA-384, and SHA-512 โ are displayed together.
Example
Input
Hello, World!
Output
SHA-256: dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f
Use Cases
- Checking whether the content of a downloaded file or text matches the hash value published by its distributor
- Computing and comparing hash values of text for a simple duplicate check or change detection
- Generating a test hash value to check the behavior of a system that handles hash values instead of raw passwords
FAQ
Is MD5 supported?
No. Only SHA-1, SHA-256, SHA-384, and SHA-512 are supported, as provided by the browser's standard Web Crypto API.
Is the text I enter sent anywhere?
No. All hash computation happens entirely in your browser.
Will the same text always produce the same hash value?
Yes. A hash function always returns the same output for the same input.
Notes
- MD5 is not supported. Only SHA-1, SHA-256, SHA-384, and SHA-512, as provided by the browser's standard Web Crypto API, are supported.
- SHA-1 is known to have weak collision resistance and is not recommended for new security uses such as signatures or password storage. Limit it to uses like integrity checks.
- The hash value also changes depending on trailing newlines or whitespace in the input text. Make sure the input matches exactly when comparing.
Related Tools
Generate a bcrypt hash from a password or other text, and verify it against an existing hash.
Generate a JWT from a header, payload, and secret.
Validate a JWT's format, expiration, and signature.