Input

Mode:

Output

What Is Base64 to YAML?

Working with Kubernetes, Docker Compose, or CI/CD pipelines? You've probably run into Base64-encoded YAML configs stored in secrets, environment variables, or API payloads. This tool decodes them instantly: paste the Base64 string and get readable YAML back. It also encodes YAML to Base64 for embedding in Kubernetes Secrets, web APIs, or JSON payloads. Everything runs in your browser, so sensitive configs never leave your machine.

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

How do I decode Base64 encoded YAML config files?

Paste the Base64 string into the left editor with Decode mode selected. The tool instantly outputs the original YAML. This is handy for inspecting Kubernetes Secrets or CI/CD environment variables that store YAML as Base64.

Can I encode a YAML file with special characters to Base64?

Yes, with a caveat. The browser's btoa() function only handles Latin-1 characters. If your YAML contains UTF-8 characters (like Chinese or emoji), you'll need to pre-process them. See the MDN Base64 guide for workarounds.

Is my YAML configuration data private?

Yes. All encoding and decoding happens locally in your browser using JavaScript. No data is sent to any server. You can verify this in your browser's Network tab.

Does this support URL-safe Base64 (Base64url)?

The browser's atob() expects standard Base64. If you have a Base64url string (with - and _), replace - with + and _ with / first, or use our Base64 URL Decoder.

What YAML use cases does this tool handle?

It handles any text-based YAML: Kubernetes manifests, Docker Compose files, Ansible playbooks, CI/CD pipeline configs, and more. The tool doesn't parse the YAML structure -- it simply decodes or encodes the raw text.

Related Tools

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