LRC Checksum Calculator
Online LRC longitudinal redundancy check code calculator, supporting single and batch calculations, commonly used for Modbus ASCII communication data verification.
Browser execution mode: Your data is processed in your browser and is not uploaded to the server.
Speed and Stability: Processing speed depends on your device and browser. For large batch work, the desktop version may be more stable.
Loading tool, please wait...
If the online tool fails to load or run, try the desktop tool.https://tools.yikeaigc.com/
Tool Usage
Return to old versionSupports HEX, ASCII, UTF-8 text, and raw byte input. Generates common Modbus ASCII two's-complement LRC and exports CSV or ZIP in batch.
Set calculation parameters
First confirm the input source and complement mode. For Modbus ASCII, usually choose HEX input, two's complement, and keep original byte order.
Enter data to check
In single mode, enter one message and click Calculate to view the LRC, sum, and full message.
Validation results
Results will appear here. For a single item, view steps; for batch data, copy or download.
Instructions
Software Usage Instructions
- Set calculation parameters: First select single calculation, batch text, or batch file mode, then set the input format, complement type, byte order, and output format.
- Select input format:
- Hexadecimal HEX: Enter data such as
01 03 00 00 00 0A, separated by spaces, commas, colons, or hyphens. - ASCII characters: Calculate by character encoding, with each character corresponding to one byte.
- UTF-8 text: Suitable for byte checks of Chinese or multilingual text content.
- Raw file bytes: Calculate based on file byte content in batch file mode.
- Hexadecimal HEX: Enter data such as
- Configure complement method:
- Two's complement: A common LRC algorithm for Modbus ASCII. After summing, take the lower 8 bits, then invert and add 1.
- One's complement: After summing, take the lower 8 bits, then perform a bitwise inversion.
- Lower 8-bit sum: Outputs only the lower 8 bits of the sum, making it easier to compare algorithms from different devices.
- Enter or select files: In single mode, enter one piece of data; in batch text mode, enter one piece of data per line; in batch file mode, you can select multiple TXT, CSV, HEX, BIN, or DAT files.
- Start calculation: Click “Calculate and View Results”, and the tool will display the LRC check value, sum, LRC ASCII, complete message, and calculation process.
- Copy and download: Single results can be copied or downloaded as CSV; batch text can be exported as CSV; batch files generate result files based on the original file names, and multiple files are packaged as a ZIP.
- Save settings: Commonly used input formats, complement methods, and output styles can be saved and reused next time.
FAQ
01 03 00 00. You can separate them with spaces, commas, colons, or hyphens, or use no separators.
Related Tools
Variance and Standard Deviation Calculator
Quickly calculate data statistics such as variance, stand...