Start Submit a site

MD5, SHA-1 and SHA-256 Hash Generator

Developer Tools

Turn any text into an MD5, SHA-1 or SHA-256 digest, with correct UTF-8 handling and the digest length spelled out.

Your inputs

Browse all tools

Line breaks are included exactly as typed. An empty input still produces a digest.

Result

Hash —
  • Digest size — bit
  • Hex characters —
  • Input bytes — B

Change any input and the result updates instantly.

Formula and rules

  • A hash function maps any input to a fixed-length digest, and the same input always yields the same digest.
  • MD5 writes 128 bits as 32 hex characters, SHA-1 writes 160 bits as 40, and SHA-256 writes 256 bits as 64.
  • The text is encoded as UTF-8 bytes before hashing, so accented letters and emoji count as several bytes each.
  • Changing a single character should change roughly half of the output bits, which is what makes hashes useful for integrity checks.

Worked examples

The classic test sentence

Input The quick brown fox jumps over the lazy dog

Result SHA-256 gives d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592.

One word, three algorithms

Input abc

Result MD5 900150983cd24fb0d6963f7d28e17f72, SHA-1 a9993e364706816aba3e25717850c26c9cd0d89d, SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.

An empty input

Input Nothing at all.

Result MD5 of nothing is d41d8cd98f00b204e9800998ecf8427e, so the result is never blank.

FAQ

Can a hash be reversed?

Not in practice. The digest keeps no copy of the input, so the only options are guessing inputs until one matches or using a precomputed table of common values.

Is MD5 still safe to use?

MD5 is broken for security: practical collisions exist. It is fine for quick checksum comparisons, but never for signatures, certificates or password storage.

Why do password hashes use bcrypt instead?

bcrypt adds a random salt and is deliberately slow, so identical passwords hash differently and bulk guessing becomes expensive. MD5 and SHA-256 are fast by design, which helps attackers.

Does the tool send my text anywhere?

No. The digest is computed by JavaScript on your device, so passwords or draft documents pasted here stay local.

Disclaimer: Results follow the formula shown on this page and are for reference only. Real-world quantities vary with materials, technique and conditions, so allow a margin before ordering.