Hash Generator
Compute MD5 and SHA checksums for text or any file, entirely in your browser. Handy for checking downloads and comparing files without uploading them.
- No sign-up
- Processed locally
- MD5 and SHA family
- Hex or Base64
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
Hash generator in three steps
No account, no email, no waiting for an upload.
- STEP 01
Paste text or open a file
Text is hashed as UTF-8. A file is hashed byte for byte.
- STEP 02
Choose algorithm and format
Show all five, or just one. Write as lowercase hex, uppercase HEX or Base64.
- STEP 03
Copy the hash
Compare it with the checksum published by the source.
What Hash generator does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Five algorithmsMD5, SHA-1, SHA-256, SHA-384 and SHA-512, shown together or one at a time.
- Files of any typeHash an installer, an archive, a PDF or an image.
- Three output formatsLowercase hex, uppercase hex or Base64.
- Exact text hashingThe text is encoded as UTF-8 first, so results match command-line tools given the same text.
- Local onlySHA hashes come from the browser's built-in crypto, MD5 from code on this page. No upload.
Good to know
- Not for passwordsThese are fast hashes. Passwords need a slow, salted algorithm such as bcrypt or Argon2.
- MD5 and SHA-1 are weakUse them only for checksums and cache keys, not for security.
- SHA needs a secure pageBrowsers only offer SHA hashing on secure (https) pages. MD5 works everywhere.
- Trailing newlineA newline at the end of your text changes the hash. Be careful when comparing with 'echo' output.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use Hash generator
Verify a download
Compare a file's SHA-256 with the publisher's checksum.
Create cache keys or ETags
Hash content to a fixed-length key.
Check two files match
Equal hashes mean the contents are almost certainly identical.
Document a release
Publish checksums with your build.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
What a hash tells you
A hash function turns any input into a fixed-length fingerprint. A tiny change in the input gives a completely different result, and you cannot work backwards from the hash to the input. If two files have the same SHA-256, they are for practical purposes the same file.
MD5 and SHA-1 have known collision attacks, so a determined attacker can craft two different files with the same hash. SHA-256 and above are the safe choice today.
Verifying a download
Open the file here, copy the SHA-256 and compare it with the value on the download page. They must match exactly:
- Compare in the same case: hex is usually lowercase.
- A mismatch means a corrupted or altered file. Download it again.
- Checksums only help if you got the published value from a trusted place.
- Related: Base64 encode, UUID generator, Test ZIP integrity.
Hash formats
Hex is the common way to write a hash: MD5 is 32 characters, SHA-1 is 40, SHA-256 is 64 and SHA-512 is 128. Base64 is shorter and shows up in headers such as Subresource Integrity attributes. The same hash can be written either way, so compare like with like.
Questions, answered
How do I get the SHA-256 of a file?
Open the file here and choose SHA-256 (or leave all on). Copy the result.
Is the file I hash uploaded?
No. The file is read and hashed inside your browser tab, so even confidential documents stay on your device.
Is MD5 safe?
Not for security. It is fine for detecting accidental changes.
Why is my text hash different from another tool?
Check for a trailing newline or a different text encoding. This tool hashes UTF-8 bytes of exactly what you pasted.
Can it hash a large file?
Yes, within your device's memory. Very large files may be slow on a phone.
Will hashing work on a phone?
Yes, in current mobile browsers on secure pages. Big files may take longer to read on older devices.