Markup & Config Formatter
Prettify and minify YAML, TOML, XML, HTML, CSS, and GraphQL.
Formatting YAML, TOML, XML, and markup configs
Infrastructure and application configs rarely live in JSON alone. Kubernetes manifests use YAML, Rust and Python projects use TOML, enterprise integrations still ship XML, and front-end teams maintain HTML, CSS, and GraphQL query files. A multi-format formatter keeps whitespace and indentation consistent across those sources.
YAML readability depends on indentation. Tabs and inconsistent spaces break parsers silently or with confusing line numbers. Prettify modes normalize structure so reviewers can see nesting for probes, volume mounts, and environment variable blocks at a glance.
TOML and XML have different quoting rules than JSON. GraphQL queries benefit from line breaks before field selections and arguments. Minify modes are useful when embedding compact config in environment variables or build artifacts where bytes matter.
Run formatters locally before opening a pull request, especially on Helm template output or generated CI files. Client-side formatting keeps unpublished hostnames and credentials out of third-party paste services while you clean up a manifest during an incident.
Reference Guide
YAML, TOML, XML, HTML, CSS, and GraphQL each have distinct syntax rules. Pick the mode that matches your file type.
| Format | Common source |
|---|---|
| YAML | Kubernetes manifests, GitHub Actions, Ansible |
| TOML | Cargo, Poetry, pyproject configs |
| XML / HTML | Legacy integrations, templated email |
| GraphQL | Client queries before commit |
Quote ambiguous YAML scalars (yes, off, version numbers) to avoid boolean coercion.
Current mode
Operation: yaml-prettify
- Paste raw YAML from Kubernetes manifests, CI configs, or docker-compose files.
- Invalid YAML returns a parse error with the line message from the parser.
All processing runs locally in your browser. Paste input, click Run, and copy the result.
Example Input
name: DevPipe tools: 200 active: true
A sample loads automatically when you open this tool. Use Load Sample to reset it.
