Base64 to JSON

Input
Output

Base64 to JSON

Paste Base64 and see the JSON or text inside, formatted and ready to use, or the picture when it is an image. A JSON array of Base64 values is decoded item by item. Switch direction to encode any text, JSON or list as Base64.

Example: a Pub/Sub push message

Google Cloud Pub/Sub push subscriptions, Kubernetes secrets and many webhooks carry their payload as Base64 inside JSON. Copy just the Base64 value (here, message.data from a push request) and paste it:

Input

eyJvcmRlcklkIjoiT1JELTIwNDE5Iiwic3RhdHVzIjoicGFpZCIsImFtb3VudCI6MTQ5OSwiY3VycmVuY3kiOiJJTlIifQ==

Output

{
  "orderId": "ORD-20419",
  "status": "paid",
  "amount": 1499,
  "currency": "INR"
}

How do I use the Base64 to JSON?

  1. Paste Base64 text, or a JSON array of Base64 values.
  2. Read the decoded JSON or text, or see the image.
  3. Copy it, or switch to Encode for any text, JSON or list.

What does the Base64 to JSON do?

  • URL-safe Base64 in both directions
  • Images shown as pictures
  • Arrays and lists, item by item

When to use the Base64 to JSON

Base64 turns bytes into letters and digits so they can travel inside JSON, URLs, headers and environment variables. JSON hidden this way turns up in Pub/Sub push messages, Kubernetes secrets, data: URIs, signed tokens and many webhook payloads.

Bracely reads standard Base64 and the URL-safe kind (with - and _), with or without the = padding, and a data: URI prefix is fine too. When the result is JSON it's formatted, when it's text you see the text, and when it's an image you see the picture. Paste a JSON array of Base64 strings to decode every item at once.

Switch to Encode to go the other way: JSON is minified before it's encoded, and Each item encodes every array item or line on its own, which is handy for a list of secrets.

Frequently asked questions

Why do I get plain text instead of JSON?
The decoded bytes aren't valid JSON, so Bracely shows them as text. If they look like JSON full of backslashes, the JSON was stringified before it was encoded: open the result in Unstringify.
What's the difference between Base64 and Base64URL?
Base64URL swaps + and / for - and _ so the value is safe in a URL, and usually drops the = padding. JWTs use it. Bracely decodes both without a setting; choose the URL-safe alphabet when you encode.
How do I decode a Kubernetes secret?
Run kubectl get secret NAME -o json, copy one value from its data section and paste it. Each value is Base64 on its own, so decode them one at a time, or paste them as a JSON array to decode them all.
Can it decode a JWT?
Use the JWT decoder for tokens: it decodes and checks them properly.
Is my data uploaded?
No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.

More JSON tools

Bracely has 108 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram