What is MQTT Packet Codec
This tool decodes MQTT binary packets and builds common control packets, with format conversion across hex/base64/C-array views.
Key Features
- Decode MQTT packets into structured fields.
- Build CONNECT/PUBLISH/SUBSCRIBE and related packets.
- Switch input/output formats easily.
- Inspect bytes and packet structure previews.
Steps
- Paste packet bytes in Decode tab and choose format.
- Review decoded structure and fields.
- Configure packet parameters in Encode tab.
- Copy generated output for replay/testing.
FAQ
Why does decode fail?
Usually due to wrong input format, incomplete bytes, or invalid packet structure.
Why is encoded output different from captures?
Verify flags, QoS, packet id, and payload encoding settings against actual sender behavior.