Encode a JSON object as a Base64 string instantly in your browser. Swap to Base64→JSON in one click. URL-safe variant available. 100% client-side and free.
The JSON to Base64 converter JSON-stringifies the input and encodes it as a Base64 string using `btoa`. This is the same encoding used in JWT payloads, API tokens, and data URIs. Both editors are live — swap to Base64→JSON with one click. A URL-safe variant (replacing `+` with `-` and `/` with `_`) is also available for use in URLs and headers.
QIs the output standard Base64 or URL-safe Base64?
Standard Base64 by default. Toggle URL-safe mode to replace + with - and / with _ (removing padding) for use in URLs and JWT tokens.
QDoes it handle Unicode characters?
Yes — the converter UTF-8 encodes the JSON string before Base64 encoding to correctly handle non-ASCII characters.
QIs my data sent to a server?
No. All encoding runs in your browser.