Hash Generator

Generate MD5, SHA-1, SHA-2, SHA-3, Keccak-256 and RIPEMD-160 hashes of text at once.

Back to tools
Hashes (hex)
  • MD5
    128-bit
    —
  • SHA-1
    160-bit
    —
  • SHA-224
    224-bit
    —
  • SHA-256
    256-bit
    —
  • SHA-384
    384-bit
    —
  • SHA-512
    512-bit
    —
  • SHA3-256
    256-bit
    —
  • SHA3-512
    512-bit
    —
  • Keccak-256
    256-bit
    —
  • RIPEMD-160
    160-bit
    —
Need a keyed hash? HMAC Generator

How to generate MD5, SHA-1 and SHA-256 hashes

This hash generator computes ten common hash functions from the same text at once: MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, Keccak-256 and RIPEMD-160. Type or paste your text and every digest appears in the Hashes (hex) list, each with its own copy button. You do not have to pick an algorithm first, which helps when you are not sure which one produced a checksum.

Use it to reproduce a hash that an API or database expects, debug a cache key, or look up the Keccak-256 hash used by Ethereum. Hashing happens in your browser.

How to use it

  1. Type or paste text into the Input text box. All hashes update automatically after a short pause.
  2. Find the row for your algorithm. Each row shows its name, output size in bits and hex digest.
  3. Turn on Uppercase hex if the system you are comparing against prints hex digits in capitals. The hash value itself does not change.
  4. Click the copy button at the end of a row to copy that hash. The icon changes to a check mark when it is copied.
  5. Click Clear input to start over. If you need a hash that depends on a secret key, use Need a keyed hash? HMAC Generator.

Examples

Every hash of the word hello

The input is the five characters hello with no trailing newline. These are the rows shown in the Hashes (hex) list with default settings. Note that SHA3-256 and Keccak-256 give different results.

Input text
hello
Hashes (hex)
MD5         5d41402abc4b2a76b9719d911017c592
SHA-1       aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-224     ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193
SHA-256     2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-384     59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f
SHA-512     9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
SHA3-256    3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392
SHA3-512    75d527c368f2efe848ecf6b073a36767800805e9eef2b1857d5f984f036eb6df891d75f72d9b154518c1cd58835286d1da9a38deba3de98b5a53e5ed78a84976
Keccak-256  1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8
RIPEMD-160  108f07b8382412612c048d07d13f814118445acd

The same word with a trailing newline

Here the input is hello followed by a line break, which is what echo hello | md5sum hashes. Only the MD5 and SHA-256 rows are shown. One extra byte gives a completely different digest.

Input text
hello
Hashes (hex)
MD5         b1946ac92492d2347c6235b4d2611184
SHA-256     5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03

The algorithms at a glance

A hash function turns input of any length into a fixed-size digest. The same input always gives the same digest, and changing one character changes the whole result. The algorithms differ in output size, design and how well they resist attacks.

  • MD5 (128-bit, 32 hex characters): broken. Collisions can be produced in seconds on a laptop. Still seen in legacy systems and non-security checksums that only catch accidental corruption.
  • SHA-1 (160-bit, 40 hex characters): broken for collision resistance since the 2017 SHAttered attack. Git still uses it to name objects, with extra collision detection, and old protocols and APIs still require it.
  • SHA-224 and SHA-256 (SHA-2 family): SHA-256 is the current general-purpose default for checksums, TLS certificates, code signing, Bitcoin and most APIs. SHA-224 is SHA-256 with different starting values and a shorter output.
  • SHA-384 and SHA-512 (SHA-2 family, 64-bit words): longer digests, often faster than SHA-256 on 64-bit CPUs. SHA-384 is a truncated SHA-512.
  • SHA3-256 and SHA3-512 (FIPS 202): the newer SHA-3 standard, built on the Keccak sponge rather than the SHA-2 design. Secure and standardized.
  • Keccak-256: the original Keccak submission, used by Ethereum for addresses, transaction hashes and Solidity's keccak256.
  • RIPEMD-160 (160-bit): no practical attacks, but rarely chosen for new designs. Bitcoin uses RIPEMD-160(SHA-256(x)) to shorten public keys into addresses.

SHA3-256 is not Keccak-256

When NIST standardized Keccak as SHA-3 in FIPS 202, it changed the padding byte added to the input. The internal permutation is identical, but the same text produces different digests: for hello, SHA3-256 starts with 3338be69 and Keccak-256 starts with 1c8aff95. Ethereum adopted Keccak before the standard was final, and some of its tools still call Keccak-256 "SHA3".

Use the Keccak-256 row for anything Ethereum-related and the SHA3-256 row when a specification refers to FIPS 202 SHA-3. An earlier single-algorithm SHA3-256 page on this site returned Keccak-256 values, so if you saved hashes from it, compare them with the Keccak-256 row.

Do not use these hashes for passwords or signatures

MD5 and SHA-1 must not be used where an attacker can choose the input, such as digital signatures, certificates or deduplication of untrusted files. Two different documents with the same MD5 or SHA-1 hash can be created on purpose, and MD5 collisions have been used to forge real certificates.

None of the algorithms on this page are suitable for storing passwords on their own, including SHA-256 and SHA-512. They are designed to be fast, so a GPU can try billions of password guesses per second against a leaked hash, and an unsalted hash of a common password can be looked up in precomputed tables. Store passwords with a dedicated password hashing function such as Argon2, scrypt or bcrypt, which adds a unique salt per password and a tunable work factor that makes every guess slow.

Why your hash might not match

Hashes are computed over bytes, not over what text looks like. This tool hashes your input as UTF-8 bytes exactly as typed, so the most common reasons for a mismatch are invisible characters:

  • A trailing newline or space. echo adds a newline, so use printf '%s' hello or echo -n hello on the command line to match what you type here.
  • Windows CRLF line endings instead of LF.
  • A different text encoding. Accented letters and emoji are hashed as their UTF-8 bytes; a system using UTF-16 or Latin-1 will produce a different hash.
  • The wrong algorithm. Digest length is a quick clue: 32 hex characters suggests MD5, 40 suggests SHA-1 or RIPEMD-160, 64 suggests SHA-256, SHA3-256 or Keccak-256.
  • Hex case does not matter. Uppercase hex only changes the display.

Privacy

All hashes are computed in your browser, and the input is not sent anywhere. The last input and the Uppercase hex setting are saved in this browser's local storage so they are still there on your next visit. Click Clear input to remove the saved text.

Related tools

More utilities that pair well with this one.

Frequently asked questions

Common questions about this tool.