○ RUNS IN YOUR BROWSER

Hash Generator

Calculate the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of text or a file in one go, in hex or Base64. Paste the checksum from a download page to see straight away whether your file matches.

HASHES

Type or paste text and its MD5 and SHA hashes show up here.

MD5 and SHA-1 are fine for checking that a download arrived intact, but not for passwords or security: different inputs with the same hash can be made on purpose.

43 B of UTF-8 text Processed locally · 0 bytes sent

What a hash is

A hash function turns any amount of data into a short, fixed-length fingerprint. The same input always gives the same hash, and changing a single character gives a completely different one. That makes hashes useful for checking that a file wasn't damaged or changed, and for spotting duplicates without comparing whole files.

MD5 and SHA-1 are only for checksums

Researchers can create two different files with the same MD5 or SHA-1 hash on purpose. For checking that a download arrived intact they still work fine, which is why the tool keeps them, but don't rely on them where someone might tamper with the file. Use SHA-256 or longer there.

Hex or Base64

The hash itself is a row of bytes. Hex writes each byte as two characters (0–9, a–f) and is what most checksum lists use. Base64 is shorter and shows up in places like Subresource Integrity attributes and some APIs. The compare box understands both.

How to generate a hash

  1. 1

    Type text or add a file

    Pick Text and type or paste, or pick File and drop any file, up to 1 GB. Text is hashed as UTF-8, so accents and emoji give the same hash as on a server.

  2. 2

    Copy the hash you need

    All five hashes appear at once. Switch between lowercase hex, uppercase HEX and Base64, and copy any of them with one click.

  3. 3

    Compare with a checksum

    Paste the expected hash from a download page or a colleague into the compare box. The tool finds which algorithm it belongs to and tells you whether it matches.

Frequently asked questions

How do I check that a download isn't corrupted?

Download pages often list a SHA-256 or MD5 checksum next to the file. Add the downloaded file here, paste that checksum in the compare box, and a match means the file arrived exactly as published.

Which hash should I use?

SHA-256 is the usual choice today, for checksums, signatures and content IDs. SHA-384 and SHA-512 are longer variants. Use MD5 or SHA-1 only when a system asks for them, for example to compare with an older checksum list.

Can I use MD5 or SHA-256 to store passwords?

No. These hashes are designed to be fast, so a stolen list of hashed passwords can be guessed at billions of tries per second. Passwords need a slow, salted algorithm such as Argon2, bcrypt or scrypt.

Why does the same text give a different hash elsewhere?

A hash changes completely with a single different byte. Look for a trailing newline, spaces at the end, Windows line endings (CRLF instead of LF) or a different text encoding. This tool hashes exactly what's in the box, as UTF-8.

Is my file uploaded?

No. Files are read and hashed in your browser with its built-in Web Crypto, so even large or private files never leave your device.

On this page
Pages
Home
All tools
Suggest a tool
About
Privacy