跳到主要内容

CRC校验和计算器

计算任何文本的CRC-32或CRC-16/CCITT-FALSE校验和——与ZIP、PNG和Ethernet帧使用的相同错误检测校验和。

输入

输出

格式为0x前缀的大写十六进制。

这对您有帮助吗?

使用此工具的更多方式

REST API

curl -X POST https://api.iotools.cloud/v1/tool/crc-checksum-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputText": "123456789",
    "algorithm": "crc32"
  }'

替换成您账户中的密钥。工具的字段即为请求体——没有额外包装。

让 AI 代理执行

Use the IOTools `crc-checksum-calculator` tool (CRC Checksum Calculator) on this input:

YOUR_INPUT_HERE

将此粘贴给任何已连接 IOTools MCP 服务器的代理,再加上您的输入内容。

嵌入式小组件

<iframe
  src="https://iotools.cloud/embed/crc-checksum-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="CRC校验和计算器 — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

把它放到您自己的页面上——免费,无需密钥,只需保留一个反向链接。

每次 API/MCP 调用费用5 积分起
需要更多积分?查看定价

也可通过

使用指南

What is a CRC checksum?

A Cyclic Redundancy Check (CRC) is a short, fixed-size value calculated from a block of data and used to detect accidental changes — corruption introduced by a noisy transmission line, a scratched disk sector, or a truncated file transfer. Feed the same data into the same CRC algorithm twice and you always get the same checksum; change even a single bit and the checksum almost always changes too, which is what makes CRCs useful for catching errors quickly and cheaply.

CRCs are everywhere in computing infrastructure: CRC-32 verifies every file stored in a ZIP archive and every chunk inside a PNG image, and it runs in hardware on every Ethernet frame to catch bit errors introduced by the wire. CRC-16 variants show up in serial protocols, Modbus, XMODEM file transfer, and countless embedded systems where a lightweight 16-bit check is enough.

CRC is not a cryptographic hash

This is the most important thing to understand about CRC: it is not designed to resist tampering. A cryptographic hash like SHA-256 is built so that finding two different inputs with the same output (a "collision") is computationally infeasible. CRC offers no such guarantee — it's a linear function, and constructing a second input that produces an identical CRC is often trivial once you know the algorithm. That trade-off is intentional: CRC is optimized for speed and for catching random errors, not for resisting a deliberate adversary. Never use CRC-32 or CRC-16 to verify a file hasn't been maliciously tampered with, to store a password, or anywhere else you need real security guarantees — reach for a SHA-2/SHA-3 hash generator instead.

How to use this tool

  1. Paste or type the text you want to check into the Input Text box.
  2. Choose an algorithm — CRC-32 (the default, used by ZIP/PNG/Ethernet) or CRC-16/CCITT-FALSE.
  3. The checksum updates automatically, shown as an uppercase hexadecimal value prefixed with 0x.

Everything runs client-side in your browser — nothing you paste in is ever uploaded.

FAQ

Why does my checksum differ from another tool's output? CRC is a family of algorithms that share the same basic table-driven technique but differ in their polynomial, initial register value, bit order (reflection), and final XOR. "CRC-32" and "CRC-16/CCITT-FALSE" are specific, standardized parameter sets — if another tool uses a different CRC-16 variant (XMODEM, MODBUS, IBM/ARC, USB), you'll get a different number for identical input, even though both are valid CRC-16 checksums.

What's the standard test to confirm an implementation is correct? The universally cited reference vector is the ASCII string 123456789. A correct CRC-32 implementation returns 0xCBF43926 for that input; a correct CRC-16/CCITT-FALSE implementation returns 0x29B1. Any conforming CRC library, in any language, reproduces these exact values.

Can I verify a file's integrity with this tool? Yes for accidental corruption — paste the file's text content and compare the checksum against a known-good value (e.g., from a ZIP archive's stored CRC-32). It is not suitable for verifying a file hasn't been intentionally altered.

Does whitespace or encoding affect the result? Yes — CRC operates on raw bytes, so trailing whitespace, line-ending differences (\n vs \r\n), and text encoding all change the checksum, even if the visible text looks identical.

Privacy

This tool runs entirely in your browser. Your input text is never sent to a server.

crccrc32crc16checksumhashdata integrityerror detection

喜欢这些工具?去掉广告吧。

一次性付款即可永久移除您账户中的所有广告。无需订阅,不追踪。