Hash Generator

Compute MD5, SHA-1, and SHA-256 hashes of any text, updated as you type.

Last updated

🔒 What you type here never leaves this device. It all happens in your browser, which is told to block this page from sending anything to other websites. Try it with airplane mode on: it still works. Check for yourself

Sent to other websites from this page: 0

—
Copied
—
Copied
—
Copied

How to generate a hash

  1. Type or paste text.
  2. The MD5, SHA-1 and SHA-256 hashes update as you type.
  3. Click Copy beside the one you need.

About these hashes

A hash function turns input of any length into a fixed-length fingerprint — the same input always produces the same hash, and even a one-character change produces a completely different one. SHA-1 and SHA-256 are computed with the browser's native crypto.subtle.digest, part of the Web Crypto API, so results match any standard implementation exactly.

MD5 isn't supported by crypto.subtle — modern browsers dropped it because it's cryptographically broken — so this tool uses a small, well-tested JavaScript implementation for it instead. MD5 and SHA-1 are fine for checksums and cache keys, but neither should be relied on for security purposes like password storage or verifying that a file hasn't been tampered with by an adversary; SHA-256 is the safer choice there.

All hashing happens locally in your browser — the text you enter is never sent anywhere.

Questions about hashes

What is a hash?

A fixed-length fingerprint of some data. The same input always gives the same hash, and changing a single character gives a completely different one.

Can a hash be reversed?

Not directly. But short or common inputs can be found by guessing, which is why plain hashes aren’t safe for storing passwords.

Which hash should I use?

SHA-256 for anything security-related. MD5 and SHA-1 are broken for security but still fine for checksums and cache keys.

How do I hash a file?

Use the file hash checker, which hashes files of any size in your browser and compares them with a published checksum.

☕ Support toolcrate