EthicalFusion

CRC32 Checksum Generator

Calculate the CRC32 checksum of any text.

Was this tool helpful?

Thanks for the feedback!

This CRC32 Checksum Generator calculates the CRC-32 value of a piece of text and returns it as eight hexadecimal digits. It uses PHP's crc32(), which implements the same CRC-32 used by ZIP, gzip, PNG and Ethernet, so the result matches Python's zlib.crc32 and MySQL's CRC32() for the same input.

Sample inputs and their checksums

InputCRC-32 (hex)
hello3610a686
Hellof7d18982
123456789cbf43926
The quick brown fox jumps over the lazy dog414fa339

The string 123456789 is the standard "check value" used to confirm that a CRC-32 implementation is correct; if your own code returns cbf43926 for it, you are computing the same variant. Changing a single capital letter, as in the first two rows, changes the whole checksum.

How a cyclic redundancy check is computed

A CRC treats the input bytes as one very long binary number and divides it by a fixed generator polynomial, here 0x04C11DB7 (written 0xEDB88320 in the bit-reversed form most software uses). The remainder of that division is the checksum. The register starts at 0xFFFFFFFF and the final value is inverted, which is why an empty string gives 00000000. Because of this polynomial arithmetic, CRC-32 detects every single-bit error and every burst of corrupted bits up to 32 bits long, which is exactly what storage and network hardware need.

When your number doesn't match another tool

  • Hex versus decimal. Python and MySQL print an integer: zlib.crc32(b"hello") returns 907060870, which is 0x3610a686.
  • Whitespace at the edges. The server trims spaces and line breaks at the start and end of your input. A text file that ends with a newline will have a different CRC than the same words typed here.
  • A different CRC variant. CRC-32C (Castagnoli), used by iSCSI and ext4, and CRC-32/BZIP2 use other settings and give other values. This tool computes the common ZIP/PNG variant only.
  • Character encoding. The text is hashed as UTF-8. Software that hashes UTF-16 or a legacy code page will disagree for any non-ASCII character.

What CRC-32 is good for, and what it isn't

Use it to detect accidental changes: a quick fingerprint for cache keys, a way to spot a changed configuration string, or a shard key that spreads records evenly. It is not a security function. With only about 4.3 billion possible values, collisions are expected; by the birthday bound, a 50% chance of two inputs sharing a checksum arrives after roughly 77,000 random strings, and a CRC can be forged on purpose with simple algebra. To detect tampering, use a cryptographic hash such as the SHA-256 Hash Generator. Your text is sent to the EthicalFusion server, checksummed by PHP and returned; the tool handles typed text, not uploaded files.

Frequently asked questions

Why is my CRC32 different from another calculator?
Check whether the other tool shows decimal instead of hex, uses a variant such as CRC-32C, or included a trailing newline. This tool trims whitespace at both ends before calculating.
Can two different texts have the same CRC32?
Yes. There are only 2 to the power 32 possible values, so collisions happen, and they can be created deliberately.
Is CRC32 a hash function?
It is a checksum designed to catch accidental errors. It behaves like a very fast, non-cryptographic hash, but offers no protection against intentional changes.
Can I check a downloaded file's CRC32 here?
No, the tool only checksums text you paste. For a file, use a command such as 7-Zip's CRC SHA menu or a checksum utility on your computer.
What is the CRC32 of an empty string?
It is 00000000, because the initial value and final inversion cancel out when there is no data.

Related tools

People also used

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.