代码、数据与二维码工具

SHA256摘要计算

计算输入文本的SHA256摘要。

优先本地处理无需注册隐私说明 ↗

Up to 1 MiB of UTF-8 text. Processing stays in your browser.

Enter text to generate a digest.

SHA-256 is a one-way hash, not encryption. It cannot decrypt or reliably recover the original text.

使用步骤

如何使用

  1. Enter or paste text into the input field.
  2. Click Generate SHA-256.
  3. Copy the hexadecimal digest if needed.

Runs locally in your browser

The page uses the browser Web Crypto API. Your input is encoded as UTF-8 and is not uploaded or sent to a third-party service.

A 256-bit one-way digest

SHA-256 is designed to be one-way. The digest is useful for comparison and integrity checks, but it cannot decrypt or reliably recover the original text.

Input size limit

The tool accepts up to 1 MiB of text as entered in the browser. Spaces, punctuation, line breaks, and Unicode characters all affect the digest.

常见问题

你可能还想知道

Can SHA-256 decrypt text?

No. SHA-256 is a one-way hash, not encryption, so there is no decrypt operation that recovers the original input.

Is my text uploaded?

No. Hashing happens locally in your browser through the Web Crypto API.

Why is the result 64 characters?

SHA-256 produces 256 bits. Written as two hexadecimal characters per byte, that is 64 lowercase hexadecimal characters.

Does whitespace affect the hash?

Yes. Every input byte matters, including spaces, tabs, line breaks, and Unicode characters.