Base64 to YAML Converter
Paste a Base64-encoded string and instantly decode it to YAML text
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
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.
bmFtZTogSmFuZSBEb2UK YWdlOiAyOApyb2xlOiBkZXZlbG9wZXI=
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.
c2VydmljZXM6CiAgd2ViOgogICAgaW1hZ2U6IG5naW54OmxhdGVzdAogICAgcG9ydHM6CiAgICAgIC0gIjgwOjgwIg==
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.
ZGF0YWJhc2U6CiAgaG9zdDogZGIucHJvZC5pbnRlcm5hbAogIHBvcnQ6IDU0MzIKICBuYW1lOiBhcHBfcHJvZAogIHBvb2xfc2l6ZTogMjA=
database:
host: db.prod.internal
port: 5432
name: app_prod
pool_size: 20
Who Uses This
Decode Kubernetes secrets and Helm chart values stored as Base64 in cluster manifests.
Inspect encoded config payloads from APIs or CI/CD pipelines without opening a terminal.
Quickly check the contents of Base64-encoded credentials or config blobs during audits.
Learn how Base64 encoding works by seeing the before-and-after of real YAML documents.
Common Mistakes
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.
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.
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
- Processing: 100% client-side — no server requests
- Browser Support: Chrome, Firefox, Safari, Edge
- Base64 Variants: Standard (A-Z, a-z, 0-9, +, /) and URL-safe (-, _)
- Padding: Optional — missing
=characters are auto-added - Encoding: Output is decoded as UTF-8 text
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.