Home/Tools/Modbus TCP Parser

Modbus TCP Parser

Paste a Modbus TCP frame in hex and decode each field — MBAP header, function code, and data payload.

Address bytes in the frame are a zero-based offset. A map entry of 40001 is sent as 0. 40001 vs offset 0

Example Frames

Modbus TCP Frame Reference

BytesFieldDescription
0–1Transaction IDMatches request to response
2–3Protocol IDAlways 0x0000 for Modbus
4–5LengthByte count of Unit ID + PDU
6Unit IDDevice address (0–247)
7Function CodeOperation to perform
8+DataRequest/response payload