Processed in your browser

JSON / MessagePack Converter

Uses a browser-side MessagePack codec for structured data. Because MessagePack is binary, the page represents encoded bytes as padded Base64 and strictly validates decoded value types.

Processed in your browser
0 / 1,500,000
Converted output

Tool guide

What is JSON / MessagePack Converter?

JSON and MessagePack Converter helps inspect binary API, cache, and queue payloads. It encodes JSON with a browser-side codec and represents the resulting bytes as Base64; decoding validates the carrier and accepts only values that can be represented safely as ordinary JSON. Common workflows include the following. Generate MessagePack bytes for an API test fixture. Decode MessagePack Base64 found in logs into readable JSON. Compare textual JSON and binary serialization size or structure. The page also documents input boundaries, output behavior, and practical cautions so you can review the result before putting it into an application, configuration, test, or production workflow.

When to use it

  • Generate MessagePack bytes for an API test fixture.
  • Decode MessagePack Base64 found in logs into readable JSON.
  • Compare textual JSON and binary serialization size or structure.

How to use it

  1. Choose encode or decode.
  2. Use strict JSON for encoding or complete Base64 for decoding.
  3. Run and review type-safety messages.
  4. Copy the Base64 or formatted JSON.
  5. Load one of the realistic examples first to verify the selected options and processing direction before replacing it with your own data.
  6. Review the output, status message, and documented limits; copy, download, or continue only after the result matches your expectation.

Runnable examples

The “Example 1” and “Example 2” buttons load the matching inputs. They cover different structures, directions, or boundaries and can be run directly in the workspace.

Example 1

{"site":"JSONLane","release":{"tools":40,"ready":true},"tags":["local","browser"]}

Example 2

g6RzaXRlqEpTT05MYW5lpXRvb2xzKA==

Input rules

  • Encoding requires strict JSON input.
  • Decoding requires complete, correctly padded standard Base64.
  • Extension values, non-finite numbers, and unsafe integers are rejected.
  • Text input is counted before processing and is limited to 1,500,000 characters on this page; file modes apply the separate file limit shown in the workspace.
  • Binary output is displayed as Base64 rather than hexadecimal.

Output rules

  • MessagePack bytes are emitted as standard Base64 text.
  • Decoded JSON uses two-space indentation.
  • The target system must decode Base64 to recover the original bytes.
  • Output reflects only the current input, direction, and options; rerun after changing a mode or value instead of treating an earlier result as current.
  • Extension types and non-JSON values are rejected.

Limitations and cautions

  • Binary output is displayed as Base64 rather than hexadecimal.
  • Extension types and non-JSON values are rejected.
  • Unsafe integers cannot silently become ordinary JSON numbers.

How your data is handled

All parsing, conversion, binary encoding, and intermediate data remain in the current browser tab. JSONLane does not upload the input or retain it after refresh or close.

FAQ

Is MessagePack content uploaded?

No. Parsing, conversion, and output generation remain in the current browser tab.

Is every round trip lossless?

No. Formats differ in types, comments, ordering, and binary capabilities; the page documents the important losses.

Why are some inputs rejected?

Unsafe integers, dangerous keys, excessive depth, and values with no clear target representation are rejected instead of silently rewritten.

Why is the output not readable text?

MessagePack is binary. Base64 lets the page display and copy the complete byte sequence safely.

Are MessagePack extension types supported?

The decoder can encounter them, but the page accepts only values that map safely to ordinary JSON.

Can the Base64 be sent directly to a MessagePack API?

Usually it must first be decoded to raw bytes; the exact requirement depends on the endpoint contract.

Updated: 2026-08-09