Output will appear here
Output will appear here
Encode JSON to Base64 and decode Base64 to JSON online with our free Base64 encoder and decoder. The tool supports both standard and URL-safe Base64 variants, validates decoded JSON output, and handles Unicode correctly. Useful for working with API payloads, webhook bodies, JWT segments, and data embedded in URLs.
Try Convert All - paste JSON once, see TypeScript, Go, YAML, and 15 more formats instantly.
To encode: paste a JSON object. To decode: paste a Base64-encoded string. The tool auto-detects the direction based on your input.
Encoding produces a Base64 string from your JSON. Decoding produces formatted JSON from a Base64 string. Both directions work instantly.
Click Copy to grab the Base64 string or decoded JSON for embedding in APIs, webhooks, environment variables, or data transfer payloads.
Standard Base64 uses + and / characters, which need percent-encoding in URLs. URL-safe Base64 replaces them with - and _, making the string safe for query parameters and URL paths without additional encoding.
Base64 encoding is useful when you need to embed JSON inside a context that does not support special characters, such as URL parameters, HTTP headers, email attachments, or database columns that only accept ASCII text.
Yes. After Base64 decoding, the tool attempts to parse the result as JSON. If the decoded string is valid JSON, it is formatted and displayed. If not, you will see the raw decoded text with an indication that it is not valid JSON.
Yes. The decoder accepts Base64 strings with or without trailing = padding characters. Some APIs and libraries omit padding, and this tool handles both variants correctly.