Search tools

Hash Generator

Type or paste text and get its MD5, SHA and CRC32 hashes instantly, side by side.

Hash Generator tool

Algorithms

Text is encoded as UTF-8 before hashing, the same as most programming languages and command-line tools. MD5 and SHA-1 are broken for security uses; use SHA-256 or better for anything that matters.

Processing runs in your browser.

Hashes are everywhere in software: they identify files, check downloads, sign API requests and store data in caches. Often you just need a quick answer. What is the SHA-256 of this string? Does this value match? This generator gives every common hash of your text in one view.

Try it with a known value

The sample sentence, “The quick brown fox jumps over the lazy dog”, is a classic test string. Its MD5 hash is 9e107d9d372bb6826bd81d3542a419d6 and its SHA-256 begins d7a8fbb3…. Add a full stop to the end of the sentence and every hash changes completely. That “avalanche effect” is what makes hashes useful for spotting changes.

Common uses

  • Checking data integrity: compare the hash of a value before and after it is stored, sent or copied.
  • Cache keys and deduplication: a hash of the content makes a short, unique-enough key.
  • API signatures: many APIs sign requests with an HMAC of a SHA hash. Our HMAC generator handles the keyed version.
  • Debugging: confirm two systems really produce the same bytes, for example after a change of character encoding.

About security

MD5 and SHA-1 are cryptographically broken: researchers can create two different inputs with the same hash. They are still fine for detecting accidental corruption, but anything that must resist an attacker should use SHA-256 or stronger. For files, use the file checksum calculator, which handles any size without loading the whole file into memory.

How to use the Hash Generator

  1. Type or paste your text. Hashes update as you type.
  2. Tick the algorithms you need.
  3. Choose lowercase hex, uppercase HEX or Base64 output.
  4. Paste an expected hash into the compare box to check which one matches.
  5. Click Copy next to any result.

Features

  • Eight algorithms: MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512 and CRC32.
  • SHA-family hashes use the browser’s Web Crypto API; others use hash-wasm, loaded on demand.
  • UTF-8 encoding, matching command-line tools and most programming languages.
  • Option to ignore a trailing newline, a common reason hashes don’t match.
  • Compare mode that accepts prefixes like sha256: and any letter case.

Frequently asked questions

What is a hash?

A fixed-length fingerprint of data. The same input always gives the same hash, and changing even one character gives a completely different one. You can’t turn a hash back into the original text.

Which hash should I use?

SHA-256 for checksums, signatures and anything security-related. MD5 and SHA-1 are fine for spotting accidental changes, but they are broken against deliberate tampering. CRC32 is only for quick error detection.

Can I hash passwords with SHA-256?

Not on its own. SHA-256 is designed to be fast, which lets attackers try billions of guesses a second. Use a slow, salted password hash such as bcrypt, scrypt or Argon2 instead.

Why doesn’t my hash match the one from the command line?

Usually a hidden newline. echo adds one, so echo hello | sha256sum hashes “hello\n”. Use echo -n, or tick “Ignore a trailing newline” here when comparing.

Written by