YAML Formatter
Pretty-print or compact YAML locally in your browser.
Embed this tool
Copy the iframe code below to add this tool to your site. The embed loads YAML Formatter without ads.
Embed code copied to clipboard.
Tool workspace
Pretty-print YAML locally (browser subset parser; minify emits JSON). Does not upload YAML. Complex YAML may need simplification.
How it works
The browser uses a minimal subset parser (no new npm dependency). Minify emits a JSON one-liner. Complex YAML features may fail with a clear error.
Empty input clears the result—no error. PHP Domain tests use Symfony Yaml from the existing stack.
Examples
- name: App → pretty YAML
- Minify mode → JSON compact form
Privacy
FAQ
Is my YAML uploaded?
No. Formatting runs entirely in your browser.
Why might complex YAML fail?
The browser helper supports a common subset without adding npm packages.
Do I need an account?
No. All published tools work for guests without login.