Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Base64 to YAML Converter

Paste a Base64-encoded string and instantly decode it to YAML text

Your files never leave your browser
Base64 Input0 chars, 0 lines
YAML Output0 chars, 0 lines
Ready·

Drop a Base64-encoded string into the left pane, click Decode, and read the original YAML on the right — keys, values, indentation all intact. Handles standard and URL-safe Base64, with or without padding.

Useful any time you pull an encoded secret from Kubernetes, a CI pipeline, or a config management API and need to see what's actually inside. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Base64
➞
Decode Bytes
➞
Display YAML

The decoder reads your Base64 input, converts each 6-bit group back to the original byte values, and renders the result as UTF-8 text. It handles both standard and URL-safe Base64 variants automatically, including missing padding characters. No server call, no round-trip — just JavaScript running on your device.

Examples

Simple User Profile

A teammate encoded a config snippet before pasting it in Slack. You need the original YAML.

INPUT
bmFtZTogSmFuZSBEb2UK YWdlOiAyOApyb2xlOiBkZXZlbG9wZXI=
OUTPUT
name: Jane Doe age: 28 role: developer

Docker Compose Service Block

You pulled an encoded config from a CI/CD secret store and need to verify what it actually deploys.

INPUT
c2VydmljZXM6CiAgd2ViOgogICAgaW1hZ2U6IG5naW54OmxhdGVzdAogICAgcG9ydHM6CiAgICAgIC0gIjgwOjgwIg==
OUTPUT
services: web: image: nginx:latest ports: - "80:80"

Kubernetes ConfigMap Data

Kubernetes stores ConfigMap values as Base64 in its API. Grab the encoded value from kubectl get secret -o yaml and decode it here.

INPUT
ZGF0YWJhc2U6CiAgaG9zdDogZGIucHJvZC5pbnRlcm5hbAogIHBvcnQ6IDU0MzIKICBuYW1lOiBhcHBfcHJvZAogIHBvb2xfc2l6ZTogMjA=
OUTPUT
database: host: db.prod.internal port: 5432 name: app_prod pool_size: 20

Who Uses This

💻 DevOps Engineers

Decode Kubernetes secrets and Helm chart values stored as Base64 in cluster manifests.

👨‍💻 Backend Developers

Inspect encoded config payloads from APIs or CI/CD pipelines without opening a terminal.

🔒 Security Analysts

Quickly check the contents of Base64-encoded credentials or config blobs during audits.

🎓 Students

Learn how Base64 encoding works by seeing the before-and-after of real YAML documents.

Common Mistakes

Pasting the entire data: field from a Kubernetes manifest

The data: block often has a key name before the Base64 value (like config.yaml: bmFtZTo...). Strip the key — only paste the encoded part after the colon and space.

Copying Base64 with extra whitespace mixed in

Line breaks from 76-character wrapping are fine — the decoder handles those. But stray spaces or tabs at the start of wrapped lines will cause a decoding error. Clean those out first.

Expecting YAML validation on the output

This tool decodes Base64 to text. If the original data was not YAML, you will still get decoded text — it just will not be valid YAML. The tool does not validate structure or syntax.

Technical Details

Frequently Asked Questions

What is Base64 to YAML conversion?

It is the reverse of Base64 encoding. You take a string that was encoded into Base64 format and convert it back to the original text — which in this case is YAML markup. The tool reads the Base64 characters, maps them back to bytes, and renders the result as readable YAML.

How do I decode a Kubernetes secret to YAML?

Run kubectl get secret my-secret -o yaml, then copy the Base64 value from the data field. Paste that string here and hit Decode. You'll see the original YAML config that was stored in the secret.

Is it safe to paste secrets into this tool?

Yes. Nothing leaves your browser. The decoding happens entirely in JavaScript on your device. No API calls, no logging, no analytics on your input. You can disconnect from the internet and the tool still works.

What if my Base64 string has line breaks?

That is usually fine. Many tools wrap Base64 output at 76 characters per line. The decoder strips whitespace before processing, so line breaks won't cause errors. Just make sure there are no extra characters mixed in.

Can I convert YAML back to Base64?

Not with this tool — it only goes one direction. For YAML-to-Base64, check the Base64 encoder in the related tools section below. Or if you have a terminal handy, echo -n "your yaml" | base64 works too.

Share: