Binary Formats

MessagePack Inspector

Decode and encode MessagePack, including extension types.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

MessagePack bytes (hex or Base64)

Structure tree

Drop a MessagePack file or paste hex / Base64 bytes to inspect its structure tree and byte spans.

About this tool

Decodes MessagePack into a structure tree with exact byte spans, encodes JSON back to MessagePack, and reports the byte-size difference in both directions. Extension types are decoded, named where known (such as type -1 timestamps), and shown as tagged bytes where application-defined.

Limits

Encoding starts from JSON, so it can only produce what JSON can express: no extension types on the way out, no non-string map keys, no undefined. Decoding handles all of them coming in. A 64-bit integer decodes to bigint and is shown exactly; re-encoding it from the JSON view would round through a Number, so the tool refuses rather than silently narrowing. Round-tripping is not guaranteed byte-identical: MessagePack has several valid encodings for the same value and this encoder picks the shortest.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.