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
| Input | CRC-32 (hex) |
|---|---|
| hello | 3610a686 |
| Hello | f7d18982 |
| 123456789 | cbf43926 |
| The quick brown fox jumps over the lazy dog | 414fa339 |
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 is0x3610a686. - 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.