MessagePack viewer
Pick a MessagePack file and decode it locally: every format family (nil, bool, int, float, str, bin, array, map and ext, including fixint, str8-32, bin8-32, ext1-16 and the timestamp ext) becomes a structure tree with wire format, byte offset and length — or a JSON view — plus a hex preview and real stats. Failures report the offending byte offset.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Pick a MessagePack file (a Redis cache value or a msgpack log, for instance). It is parsed locally in your browser and never uploaded.
Pick a file first.
Result
These are the real numbers from this run — copy them straight out.
Pick a file and set the options; the result shows up here.
What this tool does
- Inspect a msgpack cache value or log payload to see its fields and which wire format every value uses
- Debug encodings: is an integer minimally encoded, is a string fixstr or str8, is a float 32-bit or 64-bit
- Check a protocol implementation by byte offset and length per node, or copy the JSON view somewhere else
Example
Input
82 a1 61 01 a1 62 92 c3 cb 3f f0 00 00 00 00 00 00
Output
Map(2) [fixmap @0 +17]
a: 1 [positive fixint @3 +1]
b: Array(2) [fixarray @6 +11]
0: true [bool @7 +1]
1: 1 [float64 @8 +9]Put those seventeen bytes into a .msgpack file and pick it: they are { "a": 1, "b": [true, 1.0] }. The `@` value is the byte offset, `+` is the size of that value.
Frequently asked questions
What does the reported offset mean when parsing fails?
MessagePack is binary, so the only honest position is a byte offset. The reserved 0xc1 prefix, truncated data and invalid UTF-8 in strings all raise "invalid-msgpack@offset"; the page renders it in hex and shows the surrounding 48 bytes so you can compare it with the file.
Which MessagePack format families are supported?
All of them: nil, bool, int (positive/negative fixint, uint8/16/32/64, int8/16/32/64), float32/float64, str (fixstr, str8/16/32), bin8/16/32, array (fixarray, array16/32), map (fixmap, map16/32) and ext (fixext1–16, ext8/16/32). The timestamp extension (ext type -1) additionally gets a readable seconds / nanoseconds breakdown.
What are the "trailing bytes" in the result?
A msgpack payload normally holds a single top-level value. If extra bytes follow the first complete value (two payloads concatenated, or something appended to the file) the tool still decodes the first value and reports the leftover count honestly, with a warning in the interface.
Does it expand the binary (bin) payloads?
It does not guess: a bin value shows its payload length and the first 32 bytes as hex (the full hex value is copyable), and an ext value shows its type number and payload length. Use a dedicated tool to inflate or decode payloads (protobuf, gzip, CBOR…). Everything is parsed locally and nothing is uploaded.
Keywords:msgpackmessagepackbinarydecodehexserializationext