Free Online Hash Generator (MD5, SHA-1, SHA-256, SHA-512)
Type or paste any text and get MD5, SHA-1, SHA-256, and SHA-512 hashes computed instantly, all at once. 100% in your browser, nothing uploaded.
MD5, SHA-1, SHA-256, SHA-512 — Which Hash Should You Use?
MD5 and SHA-1 are fast and short, which makes them fine for file checksums or cache keys — but both are cryptographically broken and must never be used to store real passwords. SHA-256 is the current standard for security-sensitive hashing (Git commit IDs, JWT signatures, TLS certificates, blockchain). SHA-512 offers extra headroom for long-term integrity checks. This tool computes all four simultaneously so you can compare them side by side.
What Is a Cryptographic Hash Function?
A cryptographic hash function takes any input — a word, a password, an entire file — and deterministically produces a fixed-length output (a "digest") no matter how large the input is. The same input always produces the same output, but even a one-character change in the input flips roughly half the output bits (the "avalanche effect"), and there's no practical way to work backward from the digest to recover the original input (a "one-way" function). These properties make hashes useful for verifying data integrity, detecting duplicates, and building compact identifiers.
哈希生成器
这是一个免费的在线哈希生成器,可同时计算文本的 MD5、SHA-1、SHA-256 和 SHA-512 值。所有计算均在浏览器本地完成,SHA 系列使用 Web Crypto SubtleCrypto API,MD5 使用纯 JavaScript 实现,不会上传任何数据。适用于文件校验、缓存键生成等场景,但请勿用于密码存储——密码请使用 bcrypt 或 Argon2 等专用算法。