CRC Value Calculator
Introduction |
Quick References |
How Do I ... Topics |
Built-in Tools |
Scripting and Programming
Cyclic Redundancy Check (CRC) is a common technique for detecting errors in data
transmission. In CRC error checking, the sending device calculates a number based
on the data transmitted. The receiving device repeats the same calculation after
transmission. If both devices obtain the same result, it is assumed the
transmission was error-free. The procedure is known as a redundancy check because
each transmission includes not only data but also additional, redundant values for
error checking.
This Hpmbcalc CRC tool can be used to calculate a 16 and 32-bit CRC result or used
to test and evaluate a variety of 16 and 32-bit CRC algorithms based on the parameters
you specified. To activate the tool, you can choose CRC Value Calculator...
item From the Tools menu.
If you use a file as the source of input bytes, you can explicitly exclude certain
byte ranges by selecting Ignore Ranges check box and
enter the ranges in the associated edit box. This feature is useful to calculate
the CRC-value for file in which the actual CRC-value is stored and thus should be
excluded from the calculation.

What do you want to do?
To see options
- From Message:
Select here to use the text of the Input Text box as
the source of input bytes.
- From File:
Select here to use a disk file as the source of input bytes.
- Input Text:
When you click the Calculate button, if the Input Source
is set to From Message, the CRC of any data entered
into the box will be computed.
- Browse File:
Click it to browse a file as the source of input bytes.
- Input File:
Shows the current file path specified as the source of input bytes.
- Ignore Ranges:
Select it to enable explicitly excluding centain byte ranges and enter the
byte ranges in the associated edit box. Multiple addresses can be indicated
using commas or semicolon, and a range of addresses can be indicated
using ".." between two addresses. For example, enter the string
"1024..2048, 0x4096, 512" will exclude the 1024 bytes starting at address
1024, the single byte at 0x4096, and the single byte at 512.
- Bit Reflected:
Check it to cause Hpmbcalc to shift the LSB (bit 0) in an input byte into the CRC
algorithm first. If unchecked, Hpmbcalc to shift the MSB (bit 7) in an input byte
into the CRC algorithm first.
- Hex Number:
Select it to cause the text in the Input Text box to be
treated as a hexadecimal number. Note that a string representation, instead of a hex
representation, would have a different CRC value.
- Enter coefficients:
This is a space for you to define a 16-bit or 32-bit CRC generator as a
comma-separated list of polynomial coefficients. Note that the MSB of the polynomial
must always be set. For example, a 16-bit CRC polynomial "x^16 + x^15 + x^2 + x^0"
would be defined as "16,15,2,0".
- Initial Value:
Enter the initial value of the CRC algorithm, in hex. For a 16-bit CRC, its low
16 bits will be used; for a 32-bit CRC, the whole 32 bits will be used.
- Final XOR Value:
Enter the value to be XORed with the final value of the CRC algorithm, in hex.
For a 16-bit CRC, its low 16 bits will be used; for a 32-bit CRC, the whole 32
bits will be used.
- Hex Byte CRC:
Displays the CRC of your input text (or file) before XORed with
Final XOR Value.
- After Final XOR:
Displays the CRC of your Input Text or
Input File after XORed
with Final XOR Value.
To see commands
- Calculate:
Calculate the CRC value of your Input Text or
Input File based on the CRC parameters you specified.
How to calculate the CRC value of a message?
To calculate the CRC of a message, you can:
- Select From Message.
- Enter your message to be computed in the Input Text box.
- Choose a Hash Algorithm.
- Set other options as you want.
- Click Calculate to calculate the CRC value of the message.
How to calculate the CRC value of a file?
To calculate the CRC of a file, you can:
- Select From File.
- Click Browse File to browse a file.
- Set other options as you want.
- Click Calculate to calculate the CRC value of the file.
How to calculate the CRC value of a hex number?
To calculate the CRC of a hex number, you can:
- Select From Message.
- Enter the hex number to be computed in the Input Text box.
- Select Hex Number.
- Set other options as you want.
- Click Calculate to calculate the CRC value of the hex number.