Free Tool

Hex, Decimal, Binary and Modbus Address Converter

Convert numbers between decimal, hexadecimal and binary, and turn Modbus register numbers such as 40001 into the address your device actually uses.

Number converter

Type in any one box. The other two update.

Result will show here.

Register number to Modbus address

Enter the register number as written in the manual, for example 40001 (5-digit) or 400001 (6-digit).

Result will show here.

Modbus address to register number

Use this when you know the address inside the Modbus message and want the manual-style number.

Result will show here.
Check your device manual. Some devices and software add or remove the offset of 1 for you, and some manuals list protocol addresses directly. If a read returns the neighbouring register, you have an off-by-one, so confirm whether your device uses 0-based or 1-based addressing.

Why 40001 becomes address 0

Why is holding register 40001 address 0?

The 4xxxx style is a numbering convention that counts from 1. The Modbus message itself starts counting at 0, so the first holding register is sent as address 0.

What do the first digits 0, 1, 3 and 4 mean?

0 is a coil (read and write bit), 1 is a discrete input (read-only bit), 3 is an input register (read-only 16-bit value) and 4 is a holding register (read and write 16-bit value).

Which function code should I use?

Holding registers are read with function 03 and written with 06 (one) or 16 (many). Input registers are read with 04. Coils use 01 for reading and 05 or 15 for writing. Discrete inputs use 02. The converter shows these for each type.

Does every drive or PLC follow this rule?

No. Many do, but some manuals use their own address scheme. Always confirm with the register table in your device’s manual.

Stuck on a PLC or Drive Communication Problem?

Describe it and we will get back to you.

Book a Service