How to use it
- Choose a file, or paste the MessagePack as Base64 or hex.
- Read the JSON; several values one after another give an array.
- Press “Reverse the direction” to turn JSON into MessagePack.
Rules and limits
How MessagePack and CBOR are read and written
- CBOR (RFC 8949) is read with the step “CBOR to JSON”: tags become {"$tag": n, "value": …}, undefined becomes {"$undefined": true}, and date tags become dates.
- Reversing the direction writes {"$bin": …}, {"$ext": …} and {"$date": …} back as the same MessagePack types; timestamps keep milliseconds, not nanoseconds.
- A number outside the 64-bit range of MessagePack is refused instead of being changed.
Limits
- The text box shows the first 200,000 characters; the download has everything.
Questions and answers
How are values shown that JSON cannot hold?
Binary data as {"$bin": Base64}, extension types as {"$ext": type, "base64": …}, timestamps as {"$date": …}; integers beyond 2^53 keep every digit.
Why do I get an array instead of one value?
The data holds several MessagePack values one after another, and each became an item. If you expected one value, the data may have extra bytes at the end.
Can I paste hex instead of Base64?
Yes: Base64 (standard or URL-safe), hex with or without spaces, or a file. The page says how it read the input; to choose by hand, set “Read as” to “Base64” or “Hex”.