jsonecho

Base64 to YAML

Decode a Base64 string and get readable, formatted YAML back.

Loading the tool...

How to use Base64 to YAML

  1. Paste the Base64 string.
  2. Read the formatted YAML on the right.
  3. Open the Tree view to explore it.

About Base64 to YAML

Paste the Base64 string and the YAML inside is decoded and, where possible, formatted for reading. Kubernetes secrets and many CI systems expect values as Base64. If you have a config file in YAML, you often need to turn it into one Base64 string for a secret or a variable.

The decoder accepts the URL-safe alphabet and strings without padding, so strings from tokens and secrets work too. If the decoded text is not valid YAML, you still get the raw text, so you can see what is in there.

Frequently asked questions

What if the decoded text is not YAML?

You get the plain decoded text without formatting. That tells you what the string really contains.

Can I decode a Kubernetes secret value?

Yes. Paste the value from the data section of the secret and read it. Copy single values, not the whole secret.

Why is there an error saying the Base64 is not valid?

It has characters outside the Base64 alphabet, usually a stray quote, a comma or whitespace from copying.

More in URL and Base64

All tools →