YAML to Base64
Encode a YAML document as Base64 for a Kubernetes secret, a CI variable or an attachment. Nothing is uploaded.
What encoding YAML as Base64 does
The document is encoded as UTF-8 bytes first, then as standard Base64 with padding, which is exactly what a Kubernetes Secret data field or a CI variable expects. The bytes are the ones you pasted, so indentation and trailing newlines are preserved — which matters, because those are part of the document in YAML rather than formatting around it.
How to use it
YAML to Base64: paste the YAML into the box above, and press Run to get the Base64 below.
Worked example
Input:
name: café
roles:
- admin
Output:
bmFtZTogY2Fmw6kKcm9sZXM6CiAgLSBhZG1pbgo=
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns Base64; reloading the page discards both.
The document is encoded as UTF-8 bytes first, then as standard Base64 with padding, which is exactly what a Kubernetes Secret data field or a CI variable expects. The bytes are the ones you pasted, so indentation and trailing newlines are preserved — which matters, because those are part of the document in YAML rather than formatting around it.
Encode a YAML document as Base64 for a Kubernetes secret, a CI variable or an attachment. Nothing is uploaded.
How to use it
YAML to Base64: paste the YAML into the box above, and press Run to get the Base64 below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns Base64; reloading the page discards both.
What to Expect
Best for
- Converting YAML to Base64 when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
name: café roles: - admin
Sample output
bmFtZTogY2Fmw6kKcm9sZXM6CiAgLSBhZG1pbgo=
Frequently asked questions
How do I use the yaml to base64?
YAML to Base64: paste the YAML into the box above, and press Run to get the Base64 below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.