CRC-32 Hash Generator
HG-21Paste text to get its CRC-32 as hex and as a decimal number. The default is the version used by zip, gzip and PNG, and four other variants are one click away.
Runs in your browser. Nothing is uploaded.
Text (checksummed as UTF-8)
CRC-32
How to use it
- Type or paste your text into the input box. Sample loads 123456789, the standard check string.
- Choose the variant. CRC-32 is the one used by zip, gzip, PNG and Ethernet.
- Press Calculate. The hex and decimal values appear in the output.
- Tick UPPERCASE hex if you want capital letters, then copy or download the result.
Which CRC-32 you need
CRC-32 is a family of checks that differ in polynomial, bit order and the start and end values. The default is CRC-32 as used by zip, gzip, PNG and Ethernet, and the text 123456789 gives cbf43926. CRC-32C (Castagnoli, used by iSCSI and ext4) gives e3069283 for the same text, BZIP2 gives fc891918, MPEG-2 gives 0376e6e7 and JAMCRC gives 340bc6d9. Those are the check values from the public CRC catalogue, and you should pick the variant your format names.
What a CRC is, and is not
A CRC is quick to compute and very good at catching accidental damage such as flipped bits in transit or on disk. It is not a security hash. Someone who wants to can craft different data with the same CRC-32, so never use it to prove that a file was not tampered with. The text is checksummed as UTF-8, which means a trailing space or line break changes the value, and the page cannot read the bytes of a binary file.
Questions people ask
How do I calculate a CRC-32 online?
Type or paste your text into the input box, keep the variant on CRC-32 and press Calculate. The result is shown in hex and decimal. The text is read as UTF-8 and everything is computed in your browser.
What is the CRC-32 of 123456789?
It is cbf43926 in hex, which is 3421780262 in decimal. This string is the standard check value for CRC-32, so if your own implementation returns the same value for it, it is using the same variant.
What is the difference between CRC-32 and CRC-32C?
They use different polynomials. CRC-32 uses 0x04C11DB7 and is found in zip, gzip and PNG, while CRC-32C uses 0x1EDC6F41 and is found in iSCSI and ext4. The same text gives different values, so the one you pick must match the format.
Is CRC-32 the same as a hash like SHA-256?
No. A CRC is only 32 bits and is built to catch accidental errors, not attacks. A cryptographic hash such as SHA-256 is far longer and designed so that nobody can craft a matching input. Use a CRC for error detection only.
Why is my CRC-32 different from another tool?
Check the variant first, since CRC-32, CRC-32C and BZIP2 give different values. Then check the input: this page checksums text as UTF-8, so line endings, a trailing newline or another encoding change the result. The Ignore line break option is not offered, so remove a stray newline yourself.
About this tool
CRC-32 is a family. The default is the version used by zip, gzip, PNG and Ethernet (polynomial 0x04C11DB7 processed reflected, start and final XOR 0xFFFFFFFF); the text "123456789" gives cbf43926. CRC-32C (Castagnoli) gives e3069283, BZIP2 gives fc891918, MPEG-2 gives 0376e6e7 and JAMCRC gives 340bc6d9 for the same text, which are the check values in the public CRC catalogue. Pick the variant your format names. A CRC catches accidental corruption and is not a security hash; anyone can craft data with a chosen CRC. The text is checksummed as UTF-8, so a trailing space or line break changes the result.