Skip to main content

YAML Formatter

Pretty-print or compact YAML locally in your browser.

Tool workspace

Pretty-print YAML locally (browser subset parser; minify emits JSON). Does not upload YAML. Complex YAML may need simplification.

How it works

Paste YAML, choose Pretty-print or Minify, then Format.

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

Privacy: this tool processes YAML locally in your browser. We do not log or store what you paste. Login is not required.

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.