Skip to content

Base64 to JSON

Decode Base64 then parse as JSON.

Loading…

About Base64 to JSON

A JSON payload tucked inside a header, a message body or a config value is unreadable until it is decoded. Paste the Base64 string and the page decodes it as UTF-8 text, checks that the result is JSON and prints it with two-space indentation. Because those are three separate steps, the error tells you which one failed: the Base64 itself, the text encoding, or the JSON syntax. Spaces and line breaks inside the string are ignored.

Features

  • Decodes standard and URL-safe Base64, with or without padding
  • Ignores spaces and line breaks inside the string
  • Pretty-prints the decoded JSON with two-space indentation
  • Separate messages for invalid Base64, non-text bytes and invalid JSON
  • Output updates as you paste or type

Limitations

  • A data: URI prefix, or a whole JWT with its dots, is rejected as invalid Base64. Paste only the encoded segment you want to read.
  • The decoded bytes must be valid UTF-8 text, so a Base64 image or other binary data is rejected.
  • The decoded text must be valid JSON; nothing is repaired, and JSON nested more than 1,000 levels deep is refused.

How it works

  1. Paste the Base64 string into the Base64 Input panel.
  2. Read the decoded, formatted JSON in the JSON Output panel; it updates as you type or paste.
  3. If an error message appears, it says whether the Base64, the text encoding or the JSON is the problem.
  4. Select Copy Output to copy the formatted JSON.
  5. Press Clear All to decode another string.

Example input

eyJuYW1lIjoiQXVybyIsInRvb2xzIjpbInRva2VuLWNvdW50ZXIiXX0=

Frequently asked questions