Convert JSON to Base64
Validate JSON, minify it, then Base64-encode it locally in your browser.
Tool workspace
Validate JSON, minify it, then Base64-encode the UTF-8 result in your browser. Invalid JSON is not encoded. Nothing you paste is uploaded.
How it works
Conversion runs entirely in your browser: the tool validates your paste as JSON, re-stringifies it to a minified canonical UTF-8 JSON string (no pretty-print whitespace), then Base64-encodes that string. Invalid JSON is not encoded as raw text—you get a clear parse error instead. Whitespace differences in a valid paste do not change the digest once minified.
Empty input clears the result—no error. This is not a security or cryptography advisory. Use Base64 Encoder if you need to encode arbitrary non-JSON text.
Examples
- {"name":"Ada","age":36} → Base64 of that minified string
- Pretty-printed JSON with the same values → same Base64 after minify
- [1, 2, 3] → Base64 of [1,2,3]
- Invalid JSON → clear error (not Base64 of the raw paste)
Privacy
FAQ
Is my JSON uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
Why minify before encoding?
So pretty-printed and compacted JSON with the same values produce the same Base64 string. The tool encodes the canonical minified JSON, not the exact characters you typed.
Can I encode non-JSON text?
Not with this tool—use Base64 Encoder for arbitrary text. Convert JSON to Base64 requires valid JSON first.
Do I need an account?
No. All published tools work for guests without login.