YAML to Base64
Encode YAML as Base64 for Kubernetes Secrets, CI variables, and config values.
Format and validate YAML online, comments included. Free, instant, and 100% in your browser.
YAML is the language of configuration: Kubernetes manifests, Docker Compose files, CI/CD pipelines, Ansible playbooks, and many application settings are written in it. Because YAML uses indentation for structure, a single misplaced space can break a file or silently change its meaning.
This YAML formatter checks your file for errors and re-indents it consistently. Unlike many converters, it keeps your comments, so you can safely format files you commit to version control.
Re-indents every mapping and list with 2, 3, or 4 spaces, so the structure is easy to read.
Comments, blank lines between entries, anchors, aliases, tags, and quoting styles are preserved.
Bad indentation, tabs, duplicate keys, undefined aliases, and unclosed quotes or brackets are reported with line and column.
Handles Kubernetes manifests, Docker Compose files with merge keys (<<), GitHub Actions workflows, and multi-document files.
Explore the parsed data, with aliases and merge keys resolved, in a collapsible tree.
Everything runs locally in your browser. Your YAML, including any secrets, is never uploaded.
server:
host: localhost # local only
ports:
- 80
- 443
tls: {enabled: true}server:
host: localhost # local only
ports:
- 80
- 443
tls: {enabled: true}
The indentation is normalized, and the comment and flow mapping are kept.
Yes. Beautify keeps comments, blank lines between entries, anchors (&), aliases (*), tags (!), quoting styles, and block scalars (| and >). Only the indentation changes. Minify writes each document on one line in flow style, which removes comments.
Inconsistent indentation, tabs used for indentation, a missing space after the colon (key:value), duplicate keys, a nested mapping on the same line as its key (a: b: c), and unclosed quotes or brackets. Each one is reported with its exact line and column.
The YAML specification only allows spaces for indentation, because tabs can be displayed with different widths and make the structure ambiguous. Replace tabs with spaces.
YAML 1.2 with the core schema: true and false are booleans, and values like yes, no, or on stay text. Merge keys (<<), widely used in Docker Compose, are also supported. Explicit complex keys (? key) are not supported.
No. Parsing and formatting run entirely in your browser. Your YAML never leaves your device, which makes it safe for configuration files that contain secrets.
Encode YAML as Base64 for Kubernetes Secrets, CI variables, and config values.
Decode Base64 strings, such as Kubernetes Secret values, back into readable YAML.
Convert JSON to clean, readable YAML for Kubernetes, Docker Compose, CI pipelines, and config files.
Convert XML documents and configs into clean, readable YAML.