Hash Generator
Generate secure SHA digests for text or files and compare checksums locally.
The file stays on this device.
Your privacy is safe, this tool runs entirely in your browser. Nothing you enter is uploaded to or stored on our servers.
More Developer Tools
How to use Hash Generator
- 1Choose Text or File as the input source.
- 2Select SHA-1, SHA-256, SHA-384 or SHA-512.
- 3Enter text or choose a file from your device.
- 4Copy the hexadecimal or Base64 digest and compare it with the expected checksum.
Generate and compare browser-based checksums
This hash generator uses the standard Web Crypto API to calculate SHA digests. It is useful for checking whether a download matches a published checksum, detecting accidental file changes and generating stable content identifiers.
Checksums detect differences, but a matching hash is trustworthy only when the expected value comes from a trusted source.
Frequently asked questions
What is a cryptographic hash?
A hash function turns input data into a fixed-length digest. The same input produces the same digest, while a small input change produces a different result.
Can I hash a file without uploading it?
Yes. The browser reads the selected file locally and Web Crypto calculates the digest on your device.
Which algorithm should I use?
SHA-256 is a strong general-purpose choice for checksums and integrity comparisons. SHA-1 remains available for compatibility but should not be used where collision resistance is important.
Is hashing the same as encryption?
No. Hashing is designed to be one-way and does not have a decryption key. Encryption is reversible with the appropriate key.
Should passwords be stored with SHA-256?
No. Password storage should use a dedicated slow password-hashing function such as Argon2, scrypt, bcrypt or PBKDF2 with a unique salt and suitable parameters.