Skip to main content
ToolsBay

Hash Generator

Generate MD5, SHA-1, SHA-256 and SHA-512 digests of any text.

Runs entirely in your browser — nothing is uploaded

1 line
MD5Broken — collisions are trivial to produce. Checksums only.

Waiting for input…

SHA-1Broken — practical collisions demonstrated in 2017. Legacy use only.

Waiting for input…

SHA-256

Waiting for input…

SHA-384

Waiting for input…

SHA-512

Waiting for input…

Frequently asked questions

Can a hash be reversed back to the original text?

No. Hashing is one-way by design. What an attacker can do is guess: hash millions of candidate inputs and compare. That is why hashing a common password offers little protection on its own.

Should I use MD5 or SHA-1?

Not for anything involving security. Both have practical collision attacks — two different inputs producing the same hash. They remain fine as non-adversarial checksums, such as detecting accidental file corruption.

Can I use SHA-256 to store passwords?

No. SHA-256 is designed to be fast, which is exactly wrong for passwords — it lets an attacker test billions of guesses per second. Use a deliberately slow algorithm built for the job: bcrypt, scrypt or Argon2.

Is my input sent anywhere?

No. Hashing uses your browser's built-in Web Crypto API and the text never leaves your device.

What a hash function does

A hash function maps input of any size to a fixed-length fingerprint. The same input always produces the same output; changing a single character produces a completely different result. It cannot be run backwards, which is what makes it useful for verifying that something has not changed without storing the thing itself.

Which algorithm to use

  • MD5 (128-bit) — broken since 2004. Collisions can be produced in seconds. Acceptable only as a checksum against accidental corruption.
  • SHA-1 (160-bit) — broken in practice since 2017. Being phased out everywhere; do not start new work with it.
  • SHA-256 (256-bit) — the current default for signatures, certificates and content addressing. No known weaknesses.
  • SHA-384 / SHA-512 — same family, longer output. SHA-512 is often faster than SHA-256 on 64-bit hardware.

Hashing is not encryption, and not password storage

Encryption is reversible with a key; hashing is not reversible at all. And while passwords should be hashed rather than stored in plain text, a general-purpose hash is the wrong tool: its speed is a liability. Password hashing needs an algorithm that is deliberately expensive to compute and salted per user.

To generate a strong password in the first place, use the password generator. For reversible encoding rather than hashing, see the Base64 encoder.