MD5 Hash Generator

Generate MD5 hash of any text string instantly in your browser.

About MD5 Hash Generator

Generate MD5 hashes entirely in your browser using a pure JavaScript implementation. No data is sent to any server.

About this calculator

Generate the MD5 hash of any text. MD5 is an old 128-bit hash, still common for checksums and cache keys, but no longer safe against attackers.

The calculation runs in your browser.

How to use it

  1. Type the text.
  2. Press Generate MD5.
  3. Copy the 32-character hash.

About MD5

A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one. Hashing is one-way: you cannot recover the input from the hash. MD5 (128 bits) and SHA-1 (160 bits) are broken for security use. SHA-256 (256 bits) and SHA-512 are the standard choices.

MD5 output is always 32 hexadecimal characters. The empty string hashes to d41d8cd98f00b204e9800998ecf8427e.

Worked example

Hash of 'hello'

MD55d41402abc4b2a76b9719d911017c592
SHA-1aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-2562cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Runs entirely in your browser. Nothing you paste is uploaded.

Tips and common mistakes

  • Use SHA-256 or better for integrity checks.
  • Never store passwords with a plain hash. Use bcrypt, scrypt or Argon2 with a salt.
  • MD5 and SHA-1 are fine for checksums against accidents but not against attackers.
  • Compare hashes to verify a download matches the publisher's checksum.
  • Whitespace and line endings change the hash. A trailing newline makes a different result.

Frequently asked questions

What is a hash?

A fixed-length fingerprint of data produced by a one-way function.

Is MD5 secure?

No. Collisions can be created, so do not use it for security.

Can a hash be reversed?

Not directly, but weak inputs can be guessed with lookup tables.

What is SHA-256?

A secure hash producing a 256-bit (64 hex character) value.

How do I verify a file's integrity?

Compute its hash and compare with the published value.

Should I hash passwords with SHA-256?

No. Use a slow, salted algorithm such as bcrypt or Argon2.

Related tools