JSON to Base64

Validate, optionally minify, and encode a JSON document to Base64. This is how JSON is commonly passed through HTTP headers, query strings, Kubernetes secrets and message queues.

How to convert JSON to Base64 online

  1. Paste your JSON.
  2. Click Encode JSON to Base64. Invalid JSON is reported with the error position.

Frequently asked questions

Should I minify JSON before Base64 encoding?

Usually yes: whitespace is encoded too, so minifying produces a shorter Base64 string.

Related tools and guides

Comments (0)

Questions, ideas or a bug in “JSON to Base64”? Leave a comment, rate the tool, or reply to others.

No comments yet. Be the first to share your feedback!

Leave a comment

Rate this tool:
Esc
↑ ↓ move↵ openEsc close