jsontoolskit.org
JSON and JSON Schema utilities, in the browser
Say hi →

JSON to Base64

standard or URL-safe · for tokens, headers, fixtures

Encode JSON as Base64. Pick standard (+/=) or URL-safe (-_, no padding) — useful for opaque tokens, Authorization headers, and embedded fixtures. Reverse direction at Base64 → JSON.

Paste JSON.

How to encode

  1. Paste JSON (for → Base64) or Base64 (for → JSON).
  2. Pick EncodingStandard (+/=) or URL-safe (-_, no padding).
  3. The output panel shows the result; for Base64 → JSON it's pretty-printed.
  4. Copy or Download.

When to use which

FAQ

Is this encryption?

No — Base64 is a reversible encoding, not a cipher. Anyone can decode it without a key. For secrecy use real encryption.

What about Unicode?

The tool encodes the JSON's UTF-8 bytes — non-ASCII content survives the round-trip.

Will it work offline?

Yes — uses the browser's btoa.