Security Checksum Client-side

MD5 Generator & Verifier

Compute and verify MD5 checksums for text and files. Everything runs locally in your browser.

Text
MD5
Length: 0 bytes (UTF-8)
File
Drop a file here or
No file selected
MD5
Size: 0

MD5 in popular programming languages

Short examples + official docs.

Node.js
Docs
const crypto = require('crypto');
const hash = crypto.createHash('md5').update('hello', 'utf8').digest('hex');
Python
Docs
import hashlib
hash = hashlib.md5(b"hello").hexdigest()
PHP
Docs
$hash = md5('hello');
Go
Docs
import (
  "crypto/md5"; "fmt"
)
sum := md5.Sum([]byte("hello"))
fmt.Printf("%x", sum)
Java
Docs
var md = java.security.MessageDigest.getInstance("MD5");
md.update("hello".getBytes(java.nio.charset.StandardCharsets.UTF_8));
var hex = String.format("%032x", new java.math.BigInteger(1, md.digest()));
C#
Docs
using var md5 = System.Security.Cryptography.MD5.Create();
var bytes = md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes("hello"));
var hex = BitConverter.ToString(bytes).Replace("-", "").ToLowerInvariant();
Ruby
Docs
require 'digest'
hash = Digest::MD5.hexdigest('hello')
Bash
Docs
echo -n "hello" | md5sum | awk '{print $1}'

Learn more about MD5

Want the deeper background and the original spec? → Wikipedia: MD5 · RFC 1321 — The MD5 Message-Digest Algorithm

MD5 FAQ

What is MD5?

MD5 is a 128-bit cryptographic hash function that maps data to a fixed-size digest. It’s widely used for non-adversarial checksums but is no longer secure against collisions.

How many characters is an MD5 hash?

32 hex characters (16 bytes / 128 bits) when displayed in hexadecimal.

Is MD5 secure?

No. MD5 is broken for passwords and cryptographic integrity. Use Argon2/bcrypt for passwords and SHA-256/512 for integrity.

Is the MD5 hash the same every time?

Yes. The function is deterministic: the same input yields the same digest.

Does whitespace or newline change the MD5?

Yes. Even a single space or line ending (LF vs CRLF) changes the digest.

Does filename affect a file’s MD5?

No. The hash is computed from file content only, not the name.

What is the MD5 of an empty string?

d41d8cd98f00b204e9800998ecf8427e.

Uppercase vs lowercase hashes?

Hex is case-insensitive. This tool lets you toggle uppercase per section.

Can I “decrypt” MD5?

No. Hashes are one-way. “Reverse MD5” sites use lookup tables and known wordlists, not decryption.

What about salts?

Salts don’t make MD5 safe for passwords. Use a password hasher (Argon2, bcrypt, scrypt).

MD5 vs SHA-1 vs SHA-256?

MD5 < SHA-1 < SHA-256 in strength. Use SHA-256/512 for integrity; MD5 is fine for casual checks.

How do I verify MD5 on the command line?

md5sum -c file.md5 (GNU/Linux). On macOS: shasum -a 256 is recommended for SHA-256.

Does this tool upload my data?

No. Everything runs locally in your browser; text and files never leave your device.

What’s inside a .md5 file?

A line like hash␠␠filename and a trailing newline, compatible with md5sum -c.

Why do my results differ from another tool?

Encoding and line endings matter. Ensure the same text encoding (UTF-8) and identical bytes.