Non-UTF-8 characters
btoa only handles Latin-1.
Fix: The tool first converts to UTF-8 via encodeURIComponent/unescape before Base64 encoding.
header • up to 320x100 / 728x90
Normalise a YAML document and encode it as UTF-8 Base64 — ideal for Kubernetes Secrets
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
YAML is a human-friendly data serialization format that relies on indentation instead of braces, commonly used for configuration in Kubernetes, CI/CD, and modern tooling.
YAML to Base64 parses your YAML, re-emits it with a canonical two-space indent and long-line tolerance, and encodes the result as UTF-8 Base64 using the browser's btoa.
It's the fastest way to prepare YAML payloads for Kubernetes Secrets, Docker config blobs, and any system that accepts Base64-encoded config strings.
name: Ada role: admin
bmFtZTogQWRhCnJvbGU6IGFkbWluCg==
btoa only handles Latin-1.
Fix: The tool first converts to UTF-8 via encodeURIComponent/unescape before Base64 encoding.
Irregular indentation can break YAML parsing.
Fix: Run the YAML formatter first.
Yes — UTF-8 bytes are encoded using the standard Base64 alphabet.
Yes — the tool re-emits with two-space indent before encoding so diffs are stable.
Yes — you can paste the output directly into a `data:` block.
Single-document YAML only for now. Split multi-docs manually first.
No — encoding runs in your browser.
Pair YAML to Base64 with formatter, validator, and JSON converters. You can also browse the full Encoders & Decoders category for more options.
Format and beautify YAML content online with proper indentation and flow styles. Paste YAML and get clean, readable output instantly.
Validate YAML syntax online and catch indentation and structure errors instantly. Paste YAML config files and get detailed error messages with line numbers.
Convert YAML to JSON format
Encode or decode Base64 strings
Turn a YAML list of records into a CSV file ready to open in Excel, Google Sheets, or Numbers
Convert YAML objects or arrays into CSV online with inferred columns, escaped cells, and copy-ready rows for spreadsheets, imports, and data cleanup.
Convert BMP bitmap images into Base64 data URLs for embedding in HTML, email, or legacy apps
Turn GIF images (including animated GIFs) into Base64 data URLs ready to embed inline in HTML or CSS
Encode .ico favicon files as Base64 data URLs for inline HTML favicons or web manifests
Convert JPG or JPEG images into Base64 data URLs for inline HTML, CSS, or JSON — 100% browser-based
Encode PNG images as Base64 data URLs with transparency preserved for inline CSS, HTML, and emails
Encode SVG vector images as Base64 data URLs so you can paste them directly into CSS background-image or HTML