How to Format MessagePack - Step by Step Guide
Input Your MessagePack Data
Let's get your MessagePack data into the formatter! You have several convenient options:
Example: MessagePack Binary Data (Base64)
Here's what encoded MessagePack looks like:
g6RuYW1lpEpvaG6jYWdlHqZhY3RpdmXD
Automatic Decoding & Formatting
About half a second after you stop typing, the formatter:
Example: Decoded and Formatted Output
The MessagePack data decoded to readable JSON:
{ "name": "John", "age": 30, "active": true }
Choose Format Options
There are two layouts for the decoded JSON:
Export Your Formatted JSON
When the JSON looks right, take it with you:
Frequently Asked Questions
How do I format MessagePack binary data?
Paste the bytes as Base64 or Hex, or upload the .msgpack / .bin file. The formatter decodes them in your browser and shows the result as JSON indented with two spaces. If you paste JSON instead, it is simply re-indented.
Do I have to tell it whether my data is Base64 or Hex?
No. Text made only of hex digits (spaces, colons and 0x prefixes are fine) is read as Hex if it decodes cleanly; anything else is read as Base64, including URL-safe Base64 and data: URIs. The badge above the output says which one was used.
Will large integer IDs come out exactly?
Yes. 64-bit MessagePack integers such as 8901240544102066246 are decoded as BigInt and written into the JSON with every digit, instead of being rounded the way a plain JavaScript number would round them. Binary values are shown as Base64 text and timestamps as ISO 8601.
Can I get the output on one line?
Click Minify for single-line JSON. Copy and Download always give you exactly what is shown in the output panel.
What does an error like "the data ends too early" mean?
The MessagePack value is incomplete, which usually means the Base64 or Hex was only partly copied. Other messages point at a character that can't be Base64, an "=" in the middle of the text, or a byte that is not a MessagePack type at all.
Is my data uploaded anywhere?
No. Decoding and formatting happen in your browser, nothing is sent to our server, and nothing is kept: a reload starts with an empty editor. Very large inputs depend on your device memory and can make the editor slow.
To check MessagePack without formatting it, try the MessagePack Validator, or turn JSON into MessagePack with JSON to MessagePack.
Related Tools
MessagePack to JSON
Decode MessagePack binary data to JSON format for debugging and analysis
JSON to MessagePack
Convert JSON to MessagePack binary format for efficient data transmission
MessagePack Fixer
Fix broken MessagePack data automatically, repair malformed serialization, missing commas, and structural errors
MessagePack Validator
Validate MessagePack binary data integrity and structure with instant error detection
JSON Formatter
Format and beautify JSON data
XML Formatter
Format and beautify XML documents online, pretty print XML with proper indentation and structure