Convert JSON to MessagePack hex and back. MessagePack is a compact binary serialization used in Redis, APIs and games. Everything runs in your browser.
Convert JSON to MessagePack hex and back. MessagePack is a compact binary serialization used in Redis, APIs and games. Runs entirely in your browser.
MessagePack is a binary serialization format that is like JSON but smaller and faster to parse. A small integer is a single byte, and short strings, arrays and maps have tiny headers, which makes it popular in Redis, real-time APIs, game networking and message queues. This tool encodes JSON into MessagePack shown as hex, and decodes MessagePack hex back into JSON.
Input:
{ "a": 1 }Output:
81a16101
How is this different from CBOR?
Both are binary JSON-like formats. MessagePack is widely used in app and game ecosystems, while CBOR is an IETF standard common in security and IoT. The encodings differ in their type bytes.
What values are supported?
nil, booleans, integers, 64-bit floats, strings, arrays and maps with string keys, which covers anything expressible as JSON.
Why hex output?
MessagePack is binary, so it is shown as hex for copying and inspection. Paste hex back in to decode.
Is anything uploaded?
No. Everything runs in your browser.