md5check

MD5 generator

Paste any text and get its 32-character MD5 digest immediately. Five more algorithms are computed at the same time, so you never have to re-run the input to get a SHA value.

Text input

UTF-8, no trailing newline added

Some legacy systems expect uppercase MD5. Both forms are the same value.
MD5 —
SHA-1 —
SHA-256 —
SHA-384 —
SHA-512 —
CRC-32 —

Reading the output

An MD5 digest is 128 bits, printed as 32 hexadecimal characters. 5d41402abc4b2a76b9719d911017c592 is the MD5 of the ASCII string hello with no newline. If you hash hello followed by a line break you get b1946ac92492d2347c6235b4d2611184 instead, which is why the byte counter above the results matters more than the character counter.

The other rows are there because most checksum comparisons fail for the boring reason that two different digest types were compared. If a download page lists 64 characters and you generated 32, you are looking at SHA-256 next to MD5.

Reproducing the same hash in a terminal

Every command below produces identical output for the same input bytes. The trap is the newline: echo adds one, printf and echo -n do not.

# Linux
printf '%s' 'hello' | md5sum
printf '%s' 'hello' | sha256sum

# macOS
printf '%s' 'hello' | md5
md5 -s 'hello'

# Windows Command Prompt
echo hello | certutil -hashfile - MD5

# PowerShell
$b = [Text.Encoding]::UTF8.GetBytes('hello')
[BitConverter]::ToString([Security.Cryptography.MD5]::Create().ComputeHash($b)).Replace('-','').ToLower()

# OpenSSL, any platform
printf '%s' 'hello' | openssl dgst -md5

Hashing a file rather than text? The file checksum tool streams the file in chunks and returns MD5, SHA-1 and SHA-256 in one pass, with no size limit.

When MD5 is the right choice

Use MD5 when something else already expects MD5: a legacy payment gateway signature, an older API that documents an MD5 parameter, a distributable that only publishes an MD5 line, or a cache key that has to match an existing system. In those cases the algorithm is fixed for you and the only job is to reproduce it exactly.

Do not use MD5 to prove a file is authentic. Collisions can be generated deliberately, so a matching MD5 only rules out accidental corruption. For anything an attacker might want to forge, use SHA-256, and for password storage use neither. Both points are covered in is MD5 still safe?

Frequently asked

Is the MD5 of empty text really a valid hash?

Yes. The MD5 of zero bytes is d41d8cd98f00b204e9800998ecf8427e. This page shows a dash for empty input because it is almost never what someone wants, but the value exists and is well defined.

Does capitalisation matter?

No. 5D41402A… and 5d41402a… are the same digest written in different case. Comparisons should be case-insensitive. The input text, however, is case-sensitive: Hello and hello produce completely different hashes.

Is my text sent to a server?

No. MD5 on this page is computed by a small JavaScript implementation running in your browser tab. There is no network request involved in producing the hash.

Can I hash binary data?

The text box handles text, encoded as UTF-8. For binary input such as images or archives, use the file checksum tool, which reads raw bytes and will not mangle them.

Related