YAML Formatter

Format, validate, and clean YAML code with custom indentation. All processing happens locally in your browser.
Input
Drag & drop a file here

or click to browse • .yml, .yaml, .txt

Options

Indentation

Formatting

Output
Statistics
Lines: 0 | Characters: 0 | Keys: 0

How to Use

1

Paste YAML

Enter or paste your YAML code into the input area.

2

Configure

Choose indent size, sort keys, and cleanup options.

3

Format & Copy

Click Format to clean up, then copy or download the result.

Use Cases

Docker Compose
Format docker-compose.yml files for readability.
Kubernetes
Clean up K8s manifest YAML files.
CI/CD Pipelines
Format GitHub Actions or GitLab CI configs.
App Configs
Standardize application configuration files.
✓ Copied to clipboard!