#️⃣ Hash Generator — MD5 SHA256 SHA512

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes for text or files instantly. Free online hash calculator — runs in browser, nothing sent to any server.

Hash Types

How to Use

1

Enter text or file

Type or paste text in the input, or switch to File mode and drag a file onto the drop zone.

2

Hashes generate instantly

MD5, SHA-1, SHA-256 and SHA-512 hashes are calculated automatically as you type.

3

Copy any hash

Click the copy icon next to any hash row. Optionally compare against a known hash value.

Frequently Asked Questions

What is a hash function? +
A hash function takes any input and produces a fixed-length output (hash). The same input always produces the same hash, but the hash cannot be reversed to get the original input. Used for data integrity, password storage, and checksums.
What is the difference between MD5, SHA-1, SHA-256, and SHA-512? +
They differ in output length and security. MD5 (128-bit) and SHA-1 (160-bit) are considered cryptographically broken and unsuitable for security purposes. SHA-256 and SHA-512 are part of the SHA-2 family and remain secure for most uses.
Can I use MD5 for password hashing? +
No — MD5 is not suitable for password hashing. Use bcrypt, Argon2, or scrypt instead. MD5 is only appropriate for non-security checksums like file integrity verification.
Can I generate a hash for a file? +
Yes — switch to File mode to hash any file. The SHA-256 hash of a file is its fingerprint: if even one byte changes, the hash completely changes.
Are the inputs sent to a server? +
No. All hashing runs in your browser. Text hashes use the Web Crypto API (SHA family) and a JavaScript MD5 implementation. Files are read locally with FileReader.


完整指南:哈希生成器

什么是密码哈希?

密码哈希函数将任意大小的数据转换为固定长度的"摘要"。它是确定性的、单向的、抗碰撞的。常见用途:文件完整性验证、校验和、数字签名。

如何使用

  1. 输入要哈希的文本
  2. 选择算法:MD5、SHA-1、SHA-256、SHA-512。
  3. 哈希值即时生成
  4. 复制结果用于验证或数据库。

专业技巧

🧰 50+ Tools