Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Encoding & Decoding

MessagePack Decoder

Paste or upload a MessagePack-encoded byte sequence and decode it into readable JSON on-device. The tool reads the MessagePack type system end to end: positive and negative fixint, uint8 through uint64 and int8 through int64, float32 and float64, fixstr and str8/16/32, bin8/16/32, fixarray and array16/32, fixmap and map16/32, nil, true, false, and the extension family. It produces a pretty-printed JSON document and a compact type breakdown that counts the integers, floats, strings, binaries, arrays, maps and extension values. The tool flags a trailing byte after a complete top-level value, a truncated input, an unsupported extension, and a nesting depth that is too deep. Everything runs on-device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Drop a file here, or browse

Accepts: .msgpack,.bin,application/octet-stream,application/msgpack

Files stay on your device.

Ctrl+V to paste an image

    Try:

    Text is processed on this device. If a file is selected, the file is used instead.

    Options

    Drop a file above to begin

    Your file are processed on this device and never uploaded.

    How it works

    How MessagePack encodes a value

    MessagePack is a compact binary serialisation where the first byte of a value encodes both its type and, for small numbers and short strings, its size. A positive fixint packs a small integer into a single byte, a fixstr holds up to 31 characters, and fixarray and fixmap hold up to 15 elements. Larger values switch to explicit uint, int, float, str, bin, array and map type bytes with a length prefix.

    Decoding into readable JSON

    The decoder reads that type system end to end, including the full integer and float widths, string and binary families, arrays and maps, and the nil and boolean literals. It prints a pretty JSON document so the structure is immediately readable, and it handles nesting recursively with a depth cap so deeply nested input is rejected cleanly instead of exhausting the stack.

    The type breakdown

    The second view counts values by type: integers, floats, strings, binaries, arrays, maps, booleans, nulls and extension values. The counts are handy for checking a producer: if a field arrives as a float where you expected an integer, or an extension type appears where a plain string should be, the breakdown shows it before you write a single line of decoding code.

    Warnings and limits

    Input may be a file or pasted hex or base64. The decoder warns about trailing bytes after a complete top-level value, truncated data, unsupported extension types and excessive nesting. Input is capped at 16 MB and nesting at a fixed depth. Everything is decoded locally in the tab, so a message copied from a broker log never leaves the machine.

    Questions

    Does it preserve MessagePack extension types?

    Extensions are recognised and reported as extension values, but a bare extension has no meaning without its registered type code. The decoder shows what it can and flags the type rather than inventing a value.

    Can I decode a base64 payload from a log line?

    Yes. Paste it and choose automatic detection, hexadecimal or base64. The decoder strips whitespace and decodes the text before parsing the MessagePack bytes.

    Why does it complain about trailing bytes?

    MessagePack has no stream terminator. After one complete value the decoder expects the input to end, so leftover bytes usually mean two messages were concatenated or a length prefix was included by mistake.

    Is there a size limit?

    The pasted or uploaded input is capped at 16 MB, and nesting is limited so a malformed message cannot recurse without bound.

    See category