What is a hash generator (SHA-256 etc.)?
The hash generator calculates SHA-1, SHA-256, SHA-384 and SHA-512 digests for text and files using Web Crypto. It displays hexadecimal and base64 representations of the same digest and compares either with an expected checksum. MD5 is not offered because Web Crypto does not provide it.
Features
- Four Web Crypto SHA algorithms
- UTF-8 text and raw file bytes
- Hex and base64 output
- Expected checksum comparison
- 100 MB file and 10 MB text limits
How to use the hash generator (SHA-256 etc.)
- Choose Input type and Algorithm.
- Enter text or choose a file.
- Press Generate hash.
- Copy hex or base64; optionally enter Expected checksum to compare.
Worked example
SHA-256 of the three UTF-8 bytes abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. A trailing newline changes the digest. Pasting that hex into Expected checksum produces a match.
Integrity and memory limits
Hashing reads the whole file into memory, so large files can be slow on phones. Compare against a trusted published digest with the same algorithm. A hash match is not a malware scan or proof of the publisher's identity. SHA-1 is included for legacy compatibility, not new security uses. Web Crypto specification.
Frequently asked questions
Why is MD5 missing?
MD5 is not part of the Web Crypto digest algorithms used here. The tool does not substitute another digest and label it MD5.
Does uppercase hex compare correctly?
Yes. Hex comparison ignores case and surrounding whitespace. Base64 comparison remains case-sensitive.
Are hex and base64 different hashes?
No. They encode the same digest bytes with different alphabets. Copy the representation expected by your checking system.
Why does a copied text hash disagree with my file?
The text mode encodes exactly the entered text as UTF-8. A file may contain different line endings, a byte-order mark or a trailing newline, all of which change its bytes.
Can hashing encrypt or recover my text?
No. A digest is not encryption and has no decryption operation. Do not use a plain fast hash as a password-storage scheme.
Last updated 16 November 2026. Made by Criza Labs. Spotted a mistake? Tell us.