Hash Generator: MD5, SHA-256 and SHA-512
Use this hash generator to create checksums for text or files. Get MD5, SHA-1, SHA-256 and SHA-512 at once, then paste a known hash to check a download matches. It runs in your browser, so your files stay private.
Hash Generator
MD5 and SHA checksums for text and files.
How to use the hash generator
- Type or paste text, or choose a file.
- All hashes (MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256) appear instantly.
- To verify a download, paste the checksum from the website into Compare with hash.
- Press Copy next to any hash.
How it works
A hash function turns any amount of data into a short fixed-length fingerprint; changing even one byte changes the whole hash. SHA-1 and the SHA-2 family are computed with your browser’s built-in Web Crypto API, and MD5 and SHA3 with the open-source CryptoJS library. Text is hashed as UTF-8 bytes, the same as most command-line tools.
Example
The MD5 hash of "hello" is 5d41402abc4b2a76b9719d911017c592 and its SHA-256 is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.
Frequently asked questions
How do I verify a file checksum?
Choose the file, then paste the checksum from the download page into Compare with hash. A green hash and a Match message mean the file is intact.
Is MD5 secure?
No. MD5 and SHA-1 have known collisions. They are still fine for detecting accidental corruption, but use SHA-256 for security.
Can a hash be reversed?
No. Hashes are one-way. Short or common inputs can sometimes be guessed with lookup tables, though.
Are my files uploaded?
No. Hashing happens entirely in your browser.
See also: Password Generator, Base64 Encoder.
Hash text or a file
How to use it
- Type text or open a file.
- Read the hashes.
- Paste a known hash.
- Check if it matches.
More questions
Is MD5 safe for passwords?
No. MD5 is not safe for passwords, so use it only for basic file checks.
Can I hash big files?
Yes. Big files are read in your browser, so they don't need to be uploaded.
Can a hash be reversed?
No. A hash is one way and can't be turned back into the original text.
Related tools: Base64 Encode & Decode, Password Generator, JWT Decoder.
Hash sizes and why one letter changes everything
Type or paste text, or drop a file up to 500 MB, and pick from MD5, SHA-1, SHA-256, SHA-384, SHA-512 and SHA3-256. Text is hashed as UTF-8, and the Compare with hash box says Match or No match. To check how long your input is first, use the Character Counter.
Worked example: the text abc gives MD5 900150983cd24fb0d6963f7d28e17f72 (32 hex characters), SHA-1 a9993e364706816aba3e25717850c26c9cd0d89d (40) and SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad (64). The MD5 of hello is 5d41402abc4b2a76b9719d911017c592, but Hello with a capital H gives 8b1a9953c4611296a827abf8c47804d7, and hello followed by a space gives f814893777bcc2295fff05f00e508da6.
More answers
Why does my hash not match when the text looks the same?
Even one capital letter, a trailing space or a line break changes the hash completely. hello and hello followed by a space have different MD5 values (5d41402a... and f8148937...). Copy the exact text, including spaces, before you compare.
How long should each hash be?
MD5 is 32 hex characters, SHA-1 is 40, SHA-256 and SHA3-256 are 64, SHA-384 is 96 and SHA-512 is 128. If the value you are comparing has a different length, it came from another algorithm or was cut off when copied.