哈希生成器

在浏览器中即刻计算 MD5、SHA-1、SHA-256、SHA-384 和 SHA-512 哈希值。

输入0 字符

What Is Hash Generator?

Hash Generator is a free online tool that computes cryptographic hash values for any text input. It supports five algorithms: MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit), SHA-384 (384-bit), and SHA-512 (512-bit). All computation runs in your browser using the native Web Crypto API for SHA algorithms and a pure JavaScript MD5 implementation — your input is never transmitted to any server.

How to Use Hash Generator

  1. Type or paste the text you want to hash into the input field.
  2. Click Compute to generate all five hash values at once.
  3. Toggle Uppercase to switch between lowercase and uppercase hex output.
  4. Hover over any result row and click Copy to copy that hash.

Features

  • Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 simultaneously
  • Uppercase / lowercase hex toggle
  • One-click copy per algorithm
  • 100% client-side — no server, no data upload
  • Uses Web Crypto API for SHA algorithms (browser-native, fast)

FAQ

What is a hash function?

A hash function takes any input and produces a fixed-length string (the hash or digest). The same input always produces the same hash, but it is practically impossible to reverse the hash back to the original input.

Which hash algorithm should I use?

For security-sensitive uses (password verification, digital signatures) use SHA-256 or SHA-512. MD5 and SHA-1 are considered cryptographically broken and should only be used for checksums or non-security purposes.

Is my data sent to a server?

No. All hashing runs entirely in your browser using the Web Crypto API (SHA) and a pure JavaScript MD5 implementation. Nothing is transmitted.

What is the difference between MD5 and SHA-256?

MD5 produces a 128-bit (32-character hex) digest and is fast but cryptographically broken. SHA-256 produces a 256-bit (64-character hex) digest and is the current standard for secure hashing.