Payload Format Size Comparison Calculator

Payload Format Size Comparison Calculator

animation
rest
app-protocols
Try Increase Average key name length (chars): while keeping field counts fixed. Then press Calculate payload sizes.
Observe After pressing Calculate payload sizes, watch JSON and CBOR sizes as Average key name length (chars): changes.
Explain Explain why Average key name length (chars): changes JSON size but leaves Protobuf size fixed after you press Calculate payload sizes.

Technical boundaries. Sizes use average numeric representations and fixed key, tag and structure overheads. MessagePack size is estimated as CBOR size multiplied by 1.08 and rounded.

Interactive: Payload Format Size Comparison Calculator

Estimate serialized payload sizes for different formats based on the number and types of fields in your IoT message.

Back to the chapter