TuttiTools
#!

Hash Generator

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes

Output

What is a Hash?

A cryptographic hash is a fixed-length string produced by running data through a mathematical function. The same input always produces the same output, but even a tiny change to the input produces a completely different hash. Hash functions are also one-way — you can’t reverse a hash to get back the original input.

Hashes are used to verify data integrity, store passwords securely, create digital signatures, and generate unique identifiers for files and content.

Hash Algorithms

How to Use This Tool

  1. Type or paste text into the input area, or drop a file onto it to load its contents.
  2. Hashes for all four algorithms are computed and displayed instantly.
  3. Pick the output format — hex (lowercase), HEX (uppercase), or base64 — depending on what your downstream consumer expects.
  4. Copy any hash with the copy button next to it.

Common Use Cases

Algorithm Comparison

AlgorithmOutput sizeHex lengthSecurity statusTypical use today
MD5128 bits32 charsBroken (collisions found in 2004)Non-security checksums, cache keys, deduplication
SHA-1160 bits40 charsBroken (SHAttered attack, 2017)Legacy systems, Git object IDs
SHA-256256 bits64 charsSecureCertificates, signatures, blockchain, file verification
SHA-512512 bits128 charsSecureHigh-security applications; faster than SHA-256 on 64-bit CPUs

Hashing vs Encryption vs Encoding

These three terms are often confused, but they serve completely different purposes:

A common security mistake is treating encoding as encryption — a Base64 “encoded” password offers zero protection.

Try It: See the Avalanche Effect

Type hello and note the SHA-256 hash starts with 2cf24d…. Now add a single exclamation mark — hello! — and the hash becomes completely different (ce06092…). This is the avalanche effect: a one-bit change in input flips roughly half the output bits. It’s what makes hashes tamper-evident: even the smallest modification to a file or message is instantly visible.

Frequently Asked Questions

Can I use MD5 to store passwords?

No. MD5 and SHA-1 are considered cryptographically broken and should not be used for passwords. Use a dedicated password-hashing function like bcrypt, Argon2, or scrypt instead.

Why does the same text always produce the same hash?

That’s by design — hashing is deterministic. This property is what makes hashes useful for verification: you can re-hash something later and compare.

Is my data private?

Yes. All hashing runs locally in your browser using the Web Crypto API. Nothing is sent to a server.

When do I need uppercase hex or base64 output?

Different systems expect different conventions: Git and most CLI tools use lowercase hex; some Windows tools and protocol specs use uppercase HEX; HTTP Authorization: Basic headers, JWT signatures, and many APIs expect base64. Pick the format your consumer wants — the underlying digest is identical.

What is a hash collision?

A collision is when two different inputs produce the same hash. Because hashes are fixed-length, collisions must exist mathematically — but for a secure algorithm, finding one should be computationally infeasible. MD5 and SHA-1 are “broken” precisely because researchers found practical ways to manufacture collisions.

How do I verify a downloaded file's checksum?

The publisher lists an expected hash (usually SHA-256) next to the download link. After downloading, compute the file’s hash — drop the file onto this tool’s input — and compare it with the published value. If they match exactly, the file arrived intact and unmodified.

Related Tools