Kadben

MessagePack to JSON converter

Choose a file or paste MessagePack as Base64 or hex to read it as JSON. Reverse the direction to write JSON as MessagePack.

Runs in your browser. Nothing you paste or choose is uploaded.

MessagePack to JSON

    Add a step
    Result

      How to use it

      1. Choose a file, or paste the MessagePack as Base64 or hex.
      2. Read the JSON; several values one after another give an array.
      3. Press “Reverse the direction” to turn JSON into MessagePack.

      Rules and limits

      How MessagePack and CBOR are read and written

      Limits

      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”.

      Related tools