01What is Hash Generator?
Hash Generator shows five digests of the same input side by side: MD5, SHA-1, SHA-256, SHA-384 and SHA-512. The point is simple. You have a value from one place, a value from another, and you want to know if the bytes behind them are identical. Text is encoded as UTF-8 before hashing. That is the same thing sha256sum, Node's crypto.createHash and Python's hashlib do with a UTF-8 string, so the values line up with your terminal and your code. The four SHA algorithms are defined in FIPS 180-4 and run through the browser's Web Crypto API (crypto.subtle.digest). Web Crypto has no MD5, so the page carries its own small JavaScript implementation of RFC 1321. We checked it against Node's crypto module on empty input, multi-byte Unicode, inputs around the 55, 56 and 64 byte padding boundaries and a 5 MB random buffer. In Text mode the hashes refresh about 300 ms after you stop typing. The empty string gets hashed too, which is handy because its digests are well known. SHA-256 of nothing starts with e3b0c442, and if a download's checksum matches that, you hashed an empty file. File mode reads the file you pick into memory and hashes its raw bytes. That is the mode for checking an installer or ISO against the checksum on a vendor's release page. The file is read by the browser's FileReader and never leaves the tab. Here's a quick worked example. Type hello and you get MD5 5d41402abc4b2a76b9719d911017c592 and SHA-256 2cf24dba...938b9824. Change it to Hello, with one capital letter, and every digest changes completely. Switch the format from Hex to Base64 and the SHA-256 of hello becomes LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=, which is the same 32 bytes written in 44 characters. A few honest limits. Because files are loaded whole into memory, very large images can be slow or fail on a low-memory device. There is no streaming and no progress bar. The tool has no salt, key or iteration setting, so it is not a password hasher and not a message authentication code. MD5 and SHA-1 are here for compatibility with older systems. Both have practical collision attacks, so treat them as corruption checks only. Hex output is always lowercase, which matters if you compare strings with a case-sensitive check.
Developers who need to prove two strings or files have the same bytes, from checking a release download to matching a hash their backend produced. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Hash Generator
- Leave Input on Text and type or paste your string into Input Text. The five hashes appear after a short pause.
- To hash a file, switch Input to File and pick the file from the upload area.
- Set Format to Hex or Base64. The results recompute right away.
- Click the copy icon on the row you need, for example SHA-256.
- Click Reset to clear the text, the chosen file and the results.
03Worked examples
- Input:
hello - Result:
MD5 5d41402abc4b2a76b9719d911017c592 · SHA-1 aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d · SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 - SHA-384 and SHA-512 rows are left out here for length.
- Input:
Hello - Result:
MD5 8b1a9953c4611296a827abf8c47804d7 · SHA-256 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969 - One capital letter changes every digit of the hash.
- Input:
hello, Format: Base64 - Result:
SHA-256 LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ= - The same 32 bytes as the hex form, written in 44 characters instead of 64.
- Input:
(empty string or empty file) - Result:
MD5 d41d8cd98f00b204e9800998ecf8427e · SHA-1 da39a3ee5e6b4b0d3255bfef95601890afd80709 · SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - If a download's checksum matches these, the file you hashed is empty.
- Input:
abc versus abc plus a trailing newline - Result:
SHA-256 abc: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad · abc\n: edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb - This is why echo 'abc' | sha256sum disagrees with what you typed. Values match the standard SHA-256 the tool uses.
04Common use cases
- Checking a downloaded installer or ISO against the SHA-256 value on the vendor's release page
- Confirming that your backend computes the same SHA-256 for a string as the browser does
- Getting a Base64 SHA-384 digest of a script file to build a Subresource Integrity attribute
- Finding the MD5 or SHA-1 a legacy system expects, such as an old ETag or a Gravatar-style email hash
- Spotting an invisible difference, like a trailing space, between two strings that look the same
- Generating a short content hash to use as a cache-busting suffix for a static asset
05Tips
- Trailing newlines matter. echo 'abc' | sha256sum hashes 'abc\n', so use echo -n or printf to match what you typed here.
- MD5 and SHA-1 have practical collision attacks. They're fine for spotting accidental corruption but not for anything an attacker could tamper with; use SHA-256 or stronger.
- For Subresource Integrity, the value is the algorithm name, a dash and the Base64 digest of the file's exact bytes, e.g. sha384-<base64>.
- Don't store passwords as plain SHA-256. Use bcrypt, scrypt or Argon2id, which add a salt and a deliberate work factor.
- A plain hash proves integrity, not authenticity. If you need to prove who produced a message, use an HMAC or a signature.
06Related concepts
SHA-2 family, MD5, Checksum, Message digest, Subresource Integrity.
Frequently Asked Questions
What is Hash Generator?
Hash Generator is a free, browser-based developer tool on AIDToolStack. Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files using Web Crypto API. It requires no installation or sign-up and works entirely in your browser.
Is Hash Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Hash Generator store my data?
No. It runs in your browser; nothing is uploaded.