JSON Converters Code Gen Formatters All tools Browse all tools built byAbhay Darji

YAML Formatter & Beautifier

Format and beautify YAML with consistent indentation. Free, private and instant.

100% client side No upload No size limit Works offline
Input
Output
Ready
Drop a file to load it

About this tool

Reformat YAML with clean, consistent indentation. YAML is the configuration format used by Kubernetes, CI pipelines and Docker Compose, and comments, anchors, multi-line strings and far less punctuation than JSON make it readable once it is laid out properly — which is exactly what minified or machine-generated YAML is not.

When you would use it

  • Making a minified YAML document readable
  • Normalising indentation before committing
  • Inspecting YAML returned by a service

Worked example

Minified YAML
id: 4815
name: Ada Lovelace
active: true
score: 91.5
roles:
  - admin
  - editor
address:
  city: London
  postcode: NW1
Formatted
id: 4815
name: Ada Lovelace
active: true
score: 91.5
roles:
- admin
- editor
address:
  city: London
  postcode: NW1

Things worth knowing

  • Anchors and aliases are resolved during formatting, so the output is fully expanded.
  • Multi-line strings are emitted as block literals rather than escaped single lines.
  • Strings that would otherwise resolve to booleans or numbers are quoted automatically.
Questions

Frequently asked

Will formatting change what my YAML means?
No. Only insignificant whitespace changes. The parsed value is identical before and after.
Is my data uploaded anywhere?
No. Every tool on JSONWorks runs entirely in your browser using JavaScript. Your input is never sent to a server, never logged and never stored. The simplest proof is to disconnect from the internet — the tools keep working. The site does load Google Fonts and a Google Analytics page-view tag, so you will see those two requests in your network tab, but neither receives anything you type or paste.
Does it work offline?
Yes. JSONWorks is installable as a progressive web app and caches itself on first visit, so every tool keeps working without a connection.
Related

Tools that pair well with this