Hash Generator

Calculate the five most common cryptographic digests at once for a piece of text or a whole file. Paste a published checksum into the comparison box to confirm that a download is intact. SHA hashes use your browser's built-in Web Crypto API and MD5 uses a small local library.

Encoding & Security Runs in your browser

Generate Hashes

Hash
Hashed as UTF-8 bytes. Line breaks count.
Drag and drop a file here, or click to browseAccepted: any file. Up to 200 MB.

How to Use the Hash Generator

  1. Choose Text or A file.
  2. Type the text or drop the file.
  3. Optionally pick uppercase hex or Base64, and paste an expected checksum.
  4. Press Generate and copy the hash you need; a badge shows whether it matches the expected value.

About This Tool

Developers checking test vectors or cache keys, administrators verifying downloads against published checksums, and students learning about hash functions.

Input: Text or a file  ·  Output: Hex or Base64 digests.

Features and Limitations

Features

  • MD5, SHA-1, SHA-256, SHA-384 and SHA-512 in one go.
  • Files up to 200 MB are hashed locally without uploading.
  • Checksum comparison ignores letter case and spaces and accepts hex or Base64.
  • Copy button for each digest.

Limitations

  • MD5 and SHA-1 are broken for security purposes; use them only for checksums and compatibility.
  • Large files are read into memory in one piece.
  • Text is hashed as UTF-8 with line breaks as typed (\n); a file saved with Windows line endings will give a different hash.
  • This is not a password-hashing tool; use the Bcrypt Generator for passwords.
  • Processing happens on your device, so very large files depend on your browser's available memory.

Example

The text abc gives SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad and MD5 900150983cd24fb0d6963f7d28e17f72.

Frequently Asked Questions

Why is my hash different from another tool?

Usually because of invisible differences: a trailing newline, Windows line endings or a different text encoding. This tool hashes exactly the UTF-8 bytes of what is in the box.

Can I hash a password with SHA-256?

You can, but you should not store passwords that way. Fast hashes are easy to brute-force; use bcrypt, scrypt or Argon2.

Is my file uploaded?

No. It is read and hashed inside your browser.

Can I reverse a hash?

No. Hash functions are one-way; the only way to “reverse” one is to guess inputs, which is why weak passwords are dangerous.

Related Tools

More like this: all Encoding & Security tools, all Developer & Web tools or the TinySandy home page.