Format Code Now
/
Hash & generateCRC32 Checksum Calculator Next: UUID Generator ›

CRC32 Checksum Calculator

HG-06

Paste text to get its CRC32 checksum in hex and in decimal. It is the same CRC-32 that zip, gzip and PNG use, and the text 123456789 gives cbf43926.

Runs in your browser. Nothing is uploaded.

Text (checksummed as UTF-8)

CRC32

How to use it

  1. Type or paste your text into the input box. Sample loads 123456789, the standard check value.
  2. The checksum appears as you type, in hex and in decimal.
  3. Tick UPPERCASE hex if you need capital letters.
  4. Copy the result, or download it as a .txt file.

Which CRC32 this is

There are many 32-bit CRCs. This tool uses CRC-32/ISO-HDLC, the one in zip, gzip, PNG and Ethernet: polynomial 0xEDB88320 in its reflected form, a starting value of all ones, and the result inverted at the end. The standard check text 123456789 gives cbf43926, which is 3421780262 in decimal. CRC-32C (Castagnoli), used by iSCSI and some storage systems, uses a different polynomial and gives different values, so it will not match this output.

What a CRC is good for

A CRC is a cheap way to notice accidental damage, such as a flipped bit in a download or a corrupted record. It is not a security hash. Anyone can craft different data with the same CRC32, and with only 32 bits, unrelated data will collide by chance fairly often at scale. Use SHA-256 when you need a fingerprint that is hard to fake or unlikely to collide.

Text, not files

The text you type is encoded as UTF-8 and the checksum is taken over those bytes. A trailing space or line break changes the result. The tool reads files as text, so it is not a way to checksum a binary file such as a zip or an image; a command line tool or a script is the right choice for that. Empty input is valid and gives 00000000.

Questions people ask

How do I calculate a CRC32 checksum online?

Type or paste your text into the input box. The CRC32 appears straight away in hex and in decimal. Tick UPPERCASE hex if you want capital letters, then copy the result or download it as a .txt file. It is calculated in your browser.

What is the CRC32 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 implementation does not return it for the nine ASCII digits, it is using a different CRC variant or has a bug.

What is CRC32 used for?

It detects accidental changes in data. The zip and gzip formats store a CRC32 for each file, PNG uses it for each chunk, and Ethernet uses it for each frame. It is quick to compute, which suits error checking, but it offers no protection against deliberate tampering.

Is CRC32 the same as CRC32C?

No. They are both 32-bit CRCs but use different polynomials, so the same input gives different values. This tool calculates plain CRC-32 as used by zip, gzip and PNG. CRC-32C is used by iSCSI and some databases and file systems.

Is CRC32 a secure hash?

No. A CRC catches random errors but is easy to forge, because it is a simple linear calculation. Two different inputs can be made to give the same CRC32 on purpose. For integrity against an attacker, use SHA-256 or an HMAC.

Why is my CRC32 different from the one in my zip file?

A zip stores the CRC32 of the file's raw bytes. This tool checksums your text as UTF-8, and a text editor may have changed line endings or added a final newline. The bytes must match exactly, and the file must be text for this tool to read it correctly.

About this tool

This is the CRC-32 used by zip, gzip, PNG and Ethernet (polynomial 0xEDB88320, also called CRC-32/ISO-HDLC); the text "123456789" gives cbf43926. Other 32-bit CRCs such as CRC-32C (Castagnoli) use a different polynomial and give different values. A CRC catches accidental corruption. It is not a security hash: anyone can craft different data with the same CRC. It checksums text typed or opened here, not whole files of arbitrary bytes.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.