Free Online Base64 to JSON Decoder

Paste a Base64 string below to decode it.

Input Ready

Input statistics are available via the Stats button above this field.

Output

Output statistics are available via the Stats button above this field.

Results are provided for informational purposes only and may contain errors. Please verify important information independently. Use of this tool is at your own risk.

What the Base64 to JSON Decoder does

The Base64 to JSON Converter decodes a Base64 string and, when the decoded text is JSON, returns it pretty-printed with two-space indentation. It accepts both standard Base64 and the URL-safe variant used in tokens.

If the decoded text is not JSON, it is returned as a JSON string instead of an error, so you can still read it. A message about invalid Base64 means the input itself is damaged, for example cut off or mixed with other text.

When to use it

  • Reading a Base64 payload from an API response, webhook, message queue or Kubernetes Secret.
  • Inspecting the middle part of a JWT; for the full token with header and signature, use the JWT Decoder.
  • Checking a value from a cookie or URL parameter that an application encoded before sending it.
  • Debugging an integration where one side encodes a JSON message in Base64 and the other side rejects it.

Worked example

Input

eyJ1c2VyIjoiYW5hIiwicm9sZSI6ImFkbWluIiwiZXhwIjoxNzY3MjI1NjAwfQ==

Output

{
  "user": "ana",
  "role": "admin",
  "exp": 1767225600
}

Common questions about the Base64 to JSON Decoder

What if the decoded content isn't JSON?

You get the decoded text wrapped in quotes as a JSON string, so nothing is lost. To see it as plain text without the quotes, decode it with the Base64 Decoder tool.

Does it handle URL-safe Base64?

Yes. Strings that use - and _ instead of + and /, and strings without = padding, are decoded as well. Spaces and line breaks inside the string are ignored.

Can it decode files such as images?

This page is for text and JSON. To turn an image into Base64, or the other way round, use the Image to Base64 Converter tool instead. There you also get a preview of the image and a ready-to-use data: URL for HTML or CSS.

Frequently Asked Questions

What if the decoded content isn’t JSON?

You’ll get the raw decoded text back as-is - the JSON parsing is a convenience for when the underlying data happens to be JSON.

Is this tool free?

Yes, it's free to use. No signup, no email required. Get results on this page.

How do I get my result?

Use the tool on this page. Your result appears here; no email delivery is required.