CRC32 Checksum

Calculate the IEEE CRC32 checksum of text or any file in your browser and get it in hex and decimal to compare with ZIP listings.

Runs in your browser. Files never leave your device.
HEX FORMAT (IEEE 802.3)
0x236DF796
DECIMAL FORMAT
594409366
32-BIT BINARY
00100011011011011111011110010110

About the CRC32 Checksum

Calculate a CRC32 checksum of text or a file. Type a string to get its CRC32 hash in hexadecimal, decimal and 32-bit binary, or choose a file of any type to get the checksum you can compare with the value in a ZIP listing, a download page or a firmware manifest.

The result is the standard CRC-32 used by ZIP, gzip, PNG and Ethernet (IEEE 802.3), so it matches what those formats store. Text is checksummed as UTF-8 bytes and the value changes as you type. Files are read on your device and aren't uploaded.

How the CRC32 checksum is calculated

CRC32 treats the data as one very long binary number and divides it by a fixed polynomial, 0x04C11DB7, using arithmetic without carries, where every subtraction is an XOR. The 32-bit remainder is the checksum. The tool uses the usual bit-reversed form of that polynomial, 0xEDB88320, and a 256-entry lookup table, so each byte costs one table lookup, a shift and an XOR.

The working value starts at 0xFFFFFFFF and the final value is XORed with 0xFFFFFFFF once more. Those two steps are what make this the IEEE CRC-32 rather than a bare remainder. The standard test input 123456789 gives CBF43926, the published check value, so you can confirm the result against any other implementation.

Text is converted to UTF-8 bytes first. A file is read whole as raw bytes with no conversion at all, so its checksum describes the file exactly as it is stored.

crc = 0xFFFFFFFF
for each byte b:  crc = (crc >>> 8) XOR table[(crc XOR b) AND 0xFF]
checksum = crc XOR 0xFFFFFFFF
table[n] = n shifted right 8 times, XOR 0xEDB88320 whenever the bit shifted out is 1

Assumptions and limits

  • CRC32 catches accidental damage such as a cut-off download or flipped bits, but it isn't a security hash: a different file with the same CRC32 can be made on purpose. Use SHA-256 when you need to know a file hasn't been tampered with.
  • There are only about 4.3 billion possible values, so two unrelated files can share a CRC32 by chance once you compare very many of them.
  • Every byte counts. A trailing newline, a tab instead of spaces or Windows line endings give a completely different checksum for text that looks the same.
  • Other 32-bit CRCs exist, such as CRC-32C (Castagnoli) used by iSCSI and some storage systems, and the bzip2 variant. They give different values for the same input; this tool computes the IEEE one.
  • Files are read in 4 MB pieces with a percentage shown, so there is no size cap, but a multi-gigabyte file still takes a while, especially on a phone. Both tabs have Copy HEX and Copy Decimal buttons.

Worked examples

Check a file against a ZIP or 7-Zip listing

ZIP archives store a CRC32 for every file inside them, and archive programs show it in a CRC column. Extract the file, open File Checksum and choose it: if the hex value matches the listing, the extracted copy is intact. As a reference, a file of 1,048,576 zero bytes (1 MB of nothing) gives 0xA738EA1C.

Why hello and hello with a newline differ

The word hello gives 3610A686. The same word followed by a newline, which is what echo hello writes in a terminal, gives 363A3020, and Hello with a capital H gives F7D18982. One byte of difference changes the whole checksum, and that is what lets CRC32 spot a change.

hello        β†’ 0x3610A686 = 907060870
hello + \n   β†’ 0x363A3020 = 909783072
Hello        β†’ 0xF7D18982 = 4157704578

Decimal for a database column

Database functions such as MySQL's CRC32() return the checksum as an unsigned number. For The quick brown fox jumps over the lazy dog the tool shows 0x414FA339 and 1095738169; the decimal is the value to compare with a column filled by CRC32().

CRC32 check values

Useful for testing another implementation. All values are IEEE CRC-32 of the UTF-8 bytes of the text.

InputCRC32 (hex)Decimal
aE8B7BE433904355907
hello3610A686907060870
HelloF7D189824157704578
cafΓ©98AD42B52561491637
123456789CBF439263421780262
The quick brown fox jumps over the lazy dog414FA3391095738169

How to use the CRC32 Checksum

  1. Pick Text Checksum or File Checksum. Text for a string you type or paste; File for anything on your device, such as a ZIP, PDF, image or installer.
  2. Enter the text or choose the file. Text is checksummed with every keystroke; a file is processed as soon as you pick it, with its name and size shown.
  3. Compare or copy the checksum. Match the hex value against the expected one, or use the Copy HEX and Copy Decimal buttons under the result.

Frequently asked questions

How do I check the CRC32 of a file?

Open the File Checksum tab and choose the file. The CRC32 appears in hex and decimal a moment later, next to the file's name and size. Compare the hex digits with the value you were given; letter case and the 0x prefix don't matter, only the eight digits do.

Is CRC32 the same as a hash like MD5 or SHA-256?

No. It's a checksum, not a cryptographic hash. CRC32 is very fast and good at detecting accidental errors, which is why ZIP and PNG use it, but it's short and easy to forge. MD5 is also broken for security; use SHA-256 for downloads where tampering is a concern.

Why doesn't my CRC32 match another tool?

Usually the input differs: a trailing newline, different line endings or a different text encoding. The other tool may also use CRC-32C or another variant. Some languages print CRC32 as a signed 32-bit number, so 3421780262 can appear as -873187034; add 4,294,967,296 to a negative value to compare.

What does the 0x in front of the checksum mean?

It marks the number as hexadecimal, nothing more. 0xCBF43926, CBF43926 and cbf43926 are the same checksum. Copy HEX copies the eight digits without the prefix, which is the form most ZIP tools and SFV files use.

Can two different files have the same CRC32?

Yes. A 32-bit checksum has 4,294,967,296 possible values, so collisions are certain across large collections and easy to create deliberately. A matching CRC32 means a file is very probably undamaged, not that it's the same file you expected from a trusted source.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.