JSON to Base64
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
- Paste JSON (for → Base64) or Base64 (for → JSON).
- Pick Encoding — Standard (
+/=) or URL-safe (-_, no padding). - The output panel shows the result; for Base64 → JSON it's pretty-printed.
- Copy or Download.
When to use which
- Standard: default — what most APIs and language stdlibs produce.
- URL-safe: when the Base64 will appear in a URL path or query string, or inside a JWT.
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.