Hash & Encoder Tools
Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512 hashes. Encode/decode Base64, URL, HTML entities, Hex, Binary. UTF-8 safe. Drop a file to hash it directly. No upload, no signup.
Input
Output
A developer's Swiss-army knife for hashing & encoding
Every day, developers need to compute a hash, encode a Base64 string, URL-encode a value, or unescape HTML entities. The usual workflow involves jumping between several scattered sites (each plastered with ads). This page brings the most common 15 operations into a single, consistent interface.
哈希(MD5、SHA 系列)
We compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512. SHA hashes use the browser's native Web Crypto API — fast and standardized. MD5 is shipped as a small in-house implementation since Web Crypto deliberately omits it (cryptographically broken since 2005, but still useful for file checksums and content addressing).
File hashing: drop any file into the input box, or click "Drop or pick a
file". We read it as raw bytes and hash directly — the result will match exactly what
md5sum, sha256sum and the corresponding macOS / Windows tools
produce.
Base64(UTF-8 安全)
JavaScript's built-in btoa() throws on any Unicode character above U+00FF —
which means it fails on accents, emojis, kanji, anything outside Latin-1. Our encoder
round-trips through a UTF-8 byte buffer, so it handles any Unicode correctly.
Decoding also tolerates whitespace and the URL-safe variant (- instead of
+, _ instead of /).
URL 编码
Uses encodeURIComponent, which is the right choice for embedding values in URL
path segments or query parameters. Spaces become %20, ampersands become
%26, etc.
HTML 实体
Escape converts the 5 dangerous characters (&,
<, >, ", ') to their entity form
— handy for sanitizing user input before inserting into HTML. Unescape
handles named entities (©, — …), numeric
(A) and hexadecimal (👋), including non-BMP
Unicode like emojis.
Hex & Binary
Converts text to a hexadecimal or binary representation of its UTF-8 bytes, and back. The
decoders are forgiving — they accept spaces, line breaks and 0x prefixes for
hex.
隐私
Nothing is ever uploaded. Hashes, encodings and file reading all happen locally. We don't store anything, we don't log anything, we don't analyze anything — there isn't even a server component that could.
常见使用场景
- Verify a download matches its published
sha256checksum. - Decode a Base64 string from a JWT, email header or config file.
- URL-encode a query value to test a problematic redirect.
- Strip HTML entities from text scraped from a webpage.
- Generate a deterministic content hash for caching or deduplication.
常见问题
- 哈希与编码器支持哪些算法?
- 支持 MD5、SHA-1、SHA-256、SHA-384、SHA-512 哈希算法,以及 Base64 编码/解码、URL 编码/解码和 HTML 实体编码/解码。
- 哈希与编码器会上传我的数据吗?
- 不会。所有哈希计算和编码/解码都使用 Web Crypto API 和 JavaScript 在浏览器中完成。您的数据永远不会离开设备,非常适合处理敏感信息。
- MD5 和 SHA-256 有什么区别?
- MD5 生成 128 位哈希,速度快但已不安全,不建议用于安全目的。SHA-256 生成 256 位哈希,目前被认为是安全的,广泛用于数字签名、SSL 证书和区块链。
- 可以用来验证文件完整性吗?
- 可以。您可以计算文本的哈希值并与预期值比较,以验证内容是否被修改。对于文件校验,将文件内容粘贴到输入框即可生成哈希。
- 哈希与编码器免费吗?有使用限制吗?
- 完全免费,没有使用限制或数据大小限制。所有计算都在浏览器中进行,确保您的数据始终保持私密和安全。