CRC32 Checksum Calculator – Free

This CRC32 calculator computes the standard CRC-32 used by Ethernet, ZIP, gzip and PNG for text or hex bytes. The result is an 8-digit hex value, calculated in your browser.

How to use the CRC32 Calculator tool

  1. Set Input format to UTF-8 text for typed strings, or to Hexadecimal bytes when you have raw bytes such as 48 65 6C 6C 6F.
  2. Paste the data into Input. Select Example to load 123456789, the standard CRC check string.
  3. Select Calculate to compute the CRC.
  4. Compare the 0x-prefixed result with your expected value, or select Copy to take it to another program.

How the CRC32 calculation works

A CRC treats the message as one long binary polynomial and divides it by a fixed generator polynomial, using XOR in place of subtraction. The 32-bit remainder is the checksum. Any single-bit error, and any error burst confined to 32 consecutive bits, changes that remainder, which is why CRCs guard frames and archives.

This tool runs the textbook bitwise loop. A 32-bit register starts at FFFFFFFF. Each byte is XORed into the low 8 bits, then the register shifts right eight times, and each time a 1 falls out it is XORed with EDB88320. After the last byte, every bit is inverted.

CRC-32 parameters used here

Many different algorithms are called CRC32. This one is the variant cataloged as CRC-32/ISO-HDLC, and its parameters are fixed.

  • Polynomial 04C11DB7, processed in its reflected form EDB88320.
  • Initial register value FFFFFFFF.
  • Input and output reflected, meaning bytes are processed least significant bit first.
  • Final XOR with FFFFFFFF.
  • Check value for the ASCII string 123456789: CBF43926.

Test vectors you can reproduce

Use these values to confirm that your own code agrees with the tool. The last line uses Hexadecimal bytes and gives the same answer as the text 123456789, because those are its ASCII codes. Empty input returns 0x00000000.

123456789    ->  0xCBF43926
a            ->  0xE8B7BE43
hello world  ->  0x0D4A1185
The quick brown fox jumps over the lazy dog  ->  0x414FA339
31 32 33 34 35 36 37 38 39 (hex)  ->  0xCBF43926

Text or hex: pick the right input format

In text mode the tool encodes what you typed as UTF-8 and hashes those bytes, including spaces and line breaks. In hex mode it reads pairs of hex digits as bytes. The two are easy to confuse: Hello in text mode and 48 65 6C 6C 6F in hex mode both give 0xF7D18982, but 48656C6C6F typed in text mode is ten characters and gives 0xD2CDDFEC.

Hex input may contain spaces, commas and line breaks, and one leading 0x. Every byte needs two digits. Anything else produces the message Use complete hexadecimal bytes.

Where this CRC-32 is used, and where it is not

The same parameters appear in the Ethernet frame check sequence, ZIP entry headers, the gzip trailer defined in RFC 1952, PNG chunk CRCs, and functions such as zlib crc32 and Python binascii.crc32. Other 32-bit CRCs give different numbers for the same bytes: CRC32C in iSCSI and ext4, CRC-32/BZIP2, CRC-32/MPEG-2 and the POSIX cksum command. For the Castagnoli variant, use the CRC32C Calculator.

Frequently asked questions

What is the CRC32 of 123456789?

It is 0xCBF43926, or 3421780262 in decimal. This is the published check value for the standard CRC-32, so an implementation that returns it for the nine ASCII digits has the right polynomial, initial value, reflection and final XOR.

Why does my CRC32 not match another program?

The usual causes are a different variant, such as CRC32C or BZIP2, extra bytes like a trailing newline or a byte order mark, and byte order in the display. A little-endian dump of 0xCBF43926 reads 26 39 F4 CB.

Is CRC32 the same as CRC32C?

No. Both are 32 bits wide and share the same initial value and final XOR, but they use different polynomials. The string 123456789 gives 0xCBF43926 with CRC32 and 0xE3069283 with CRC32C, so the two cannot be swapped.

Can I use CRC32 as a secure hash?

No. A CRC detects accidental corruption. It has no key, collisions are easy to construct, and a 32-bit value is too short to resist guessing. Choose SHA-256 for integrity checks that must hold against a deliberate attacker.

Can this tool compute the CRC32 of a file?

It has no file picker. You can paste the file's bytes as hex, which works for headers, packets and small blobs. The loop handles one bit at a time, so very large pastes take noticeably longer than short ones.

Is my input uploaded?

No. The bytes are built and the CRC is computed by JavaScript in the page. The result panel shows the answer locally, and no request carries your data.

Related tools