Base64 to YAML

Decode Base64 and check that the result is valid YAML.

Local Your input is processed locally in your browser. The first run loads the open-source js-yaml library from this site; your input is not sent anywhere. Found a problem? Report an issue

What Base64 to YAML does

Decode Base64 and check that the result is valid YAML. Text is handled as UTF-8, so accented letters, other scripts and emoji survive the round trip.

Base64 to YAML examples

The built-in sample

Input

bmFtZTogQWRhCnRhZ3M6CiAgLSBtYXRoCiAgLSBjb2RlCmFkZHJlc3M6CiAgY2l0eTogTG9uZG9u

Output

name: Ada
tags:
  - math
  - code
address:
  city: London

This is the input that the Load sample button fills in.

The decoded YAML is returned as written

Input

YTogMQpiOiBbMSwgMl0=

Output

a: 1
b: [1, 2]

The text is checked with the YAML parser and shown unchanged, including the inline list.

Each output was produced by running this tool on the input above it.

How it works

Whitespace is removed and URL-safe characters (- and _) are converted to the standard alphabet, so both Base64 and base64url input work. The bytes are decoded as UTF-8 and then checked with the YAML parser, so you can tell immediately whether the payload is intact.

Details and limits

  • Encoding and decoding are exact, so the data comes back without losing anything.
  • Useful for reading the values of a Kubernetes Secret or a Base64-encoded configuration blob.
  • If the decoded text is not valid YAML, the parser's message is shown instead of output.
  • Input that is not valid Base64 stops the tool, and the status line shows where the problem is. The Base64 to JSON page lists the usual causes.

Questions

Is my data uploaded when I use Base64 to YAML?

No. The tool runs in your browser, so what you paste or open is processed on your own device and is not sent to a server.

What does Base64 to YAML do?

Decode Base64 and check that the result is valid YAML. Text is handled as UTF-8, so accented letters, other scripts and emoji survive the round trip.

How does Base64 to YAML work?

Whitespace is removed and URL-safe characters (- and _) are converted to the standard alphabet, so both Base64 and base64url input work. The bytes are decoded as UTF-8 and then checked with the YAML parser, so you can tell immediately whether the payload is intact.

Are there any limits I should know about?

Useful for reading the values of a Kubernetes Secret or a Base64-encoded configuration blob. If the decoded text is not valid YAML, the parser's message is shown instead of output.

Is there a size limit?

There is no fixed size limit. Everything happens on your device, so very large inputs depend on its memory and can take longer on a phone than on a computer.

Does it work on phones, and is it free?

Yes. It works in any current browser on Android phones, iPhones, tablets and computers. It is free and needs no account or sign-up.