Utilo

Hash Generator

Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512 and SHA-3 hashes and HMACs of text or files, entirely in your browser.

What this hash generator does

A cryptographic hash function turns any input into a fixed-length fingerprint. Change a single bit and the fingerprint changes completely. This tool computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and SHA3-512 for text or files in one pass, can calculate HMACs with a secret key, and outputs hexadecimal or Base64. Hashing runs in a Web Worker and uses the browser's native Web Crypto implementation for the SHA-2 family, so even large files are processed quickly.

How to use it

  1. Type text into the input, or click Hash a file to select a file from your disk.
  2. All six digests appear on the right as you type.
  3. Enter an optional HMAC secret key to compute keyed hashes instead.
  4. Switch between Hex and Base64 output and toggle uppercase if needed.
  5. Copy any digest with its button.

Practical examples

  • Verify a download: hash an ISO or installer and compare the SHA-256 with the checksum published on the vendor's website. If they match, the file is intact.
  • Webhook signatures: services such as Stripe and GitHub sign payloads with HMAC-SHA256. Paste the raw body and your signing secret to reproduce the signature while debugging.
  • Cache keys and ETags: hash a JSON payload to build a short, stable identifier for its contents.
  • Subresource Integrity: a Base64 SHA-384 of a script is what goes into an integrity="sha384-..." attribute.

Tips and edge cases

  • MD5 and SHA-1 are broken for security purposes; collisions can be produced deliberately. Use them only for non-adversarial checksums.
  • Plain hashes are not suitable for storing passwords. Use a slow, salted algorithm such as Argon2, scrypt or bcrypt.
  • Text is hashed as UTF-8. A trailing newline or Windows line ending changes the result, so compare inputs carefully.
  • Hex output is case-insensitive; AB12 and ab12 represent the same bytes.
  • For files, the whole file is read into memory, so multi-gigabyte files may be limited by available RAM.

Frequently asked questions

Which hash algorithm should I use?

SHA-256 is the modern default for integrity checks and signatures. SHA-512 can be faster on 64-bit machines. Use SHA-3 when a specification requires it.

Can a hash be reversed?

No. Hashes are one-way. Short or common inputs can be found by guessing with lookup tables, which is why passwords need salts and slow algorithms.

What is HMAC and when do I need it?

HMAC combines a secret key with the message so only someone with the key can produce a valid hash. It is used to authenticate API requests and webhooks.

Is my file uploaded?

No. The file is read locally and hashed in a background worker. Nothing leaves your device.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.