Input

Mode:

Output

What Is Base64 to YAML?

Base64 is an encoding scheme that represents binary data as ASCII text. YAML configuration files and data streams are sometimes Base64-encoded for safe transmission. This tool decodes a Base64 string and outputs the original YAML. It also supports the reverse: encoding a YAML string to Base64.

Toggle between Decode (Base64 → YAML) and Encode (YAML → Base64) using the mode buttons. All processing runs in your browser — no data is sent to any server.

How to Use This Tool

1

Choose Mode

Select Decode to convert a Base64 string to YAML, or Encode to convert YAML to a Base64 string.

2

Paste Input

Paste your Base64 string or YAML into the left editor. Use Sample to load an example, or Upload to load from a file.

3

Copy or Download Result

The right panel updates automatically. Use Copy or Download to save the result.

Example

Decoding a Base64 string that encodes a simple YAML document:

Base64 Input

Input

YAML Output

Output

Frequently Asked Questions

What happens if the Base64 does not decode to valid YAML?

The tool shows the raw decoded text as-is. It performs no YAML validation.

Does this support URL-safe Base64?

The browser's atob() function requires standard Base64. Replace - with + and _ with / before pasting URL-safe Base64.

Is my data sent to a server?

No. All processing happens locally in your browser.

Why do I get an error when encoding?

In Encode mode, btoa() only supports Latin-1 characters. If your YAML contains non-Latin characters, you may need to UTF-8 encode it first.

Related Tools

The Base64 encoding scheme is defined in RFC 4648. See also MDN: Base64.