Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Hash & HMAC generator

Make MD5, SHA-1, SHA-256, SHA-512 and CRC-32 checksums of text or any file, sign with HMAC, and check a download against its published hash.

Algorithms

How to use

  1. Type or paste text, or switch to File and choose a download, photo or backup.
  2. Tick the algorithms you want. Results update as you type.
  3. To make an HMAC (a keyed hash used to sign messages and web hooks), type the secret key.
  4. To check a download, paste the checksum from the publisher's site into Compare; a tick means the file is exactly what they published.

Keyboard and touch

TabMove between boxes, ticks and Copy buttons
SpaceTick or untick an algorithm

Tips

  • Use SHA-256 or SHA-512 for anything that matters. MD5 and SHA-1 are broken for security (people can make two different files with the same hash), but are still fine for spotting accidental damage.
  • CRC-32 is a quick error check used in ZIP files and networks, not a security hash.
  • The same text with a different line ending, an extra space or a different character encoding gives a completely different hash.
  • Do not store passwords as plain hashes; websites should use a slow password hash such as Argon2, bcrypt or PBKDF2.
  • HMAC keys are secrets: this page never stores or sends them, but do not paste production keys on a shared computer.

About this tool

The algorithms are written for this page from their published standards: MD5 (RFC 1321), SHA-1 and the SHA-2 family (FIPS 180-4), CRC-32 (the IEEE 802.3 polynomial used by ZIP and PNG) and HMAC (RFC 2104). They work as streams, so a large file is read and hashed a piece at a time without loading it all into memory. Text is hashed as UTF-8 bytes. Every algorithm is tested against Python's hashlib on many inputs, including lengths around the 64- and 128-byte block edges.

Everything runs in your browser, even for files. Nothing you type or choose is uploaded or saved.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product