YAML Formatter

Prettify YAML with consistent 2-space indentation and helpful line-aware errors.

Processed in your browserNo upload, no signup

YAML input

0 lines · 0 chars

Formatted YAML

0 lines · 0 bytes
Your input is processed locally and isn't uploaded for processing. Verify by opening DevTools → Network — there are no requests carrying your data.

YAML Formatter examples.

// Poorly indented → normalised

name: Acme
version: 1.4.2
servers:
- https://api.acme.example
- https://api-staging.acme.example

Frequently asked questions.

Does the formatter change values?

No. It only normalises whitespace and indentation. The parsed values are unchanged.

Will it change my quoting style?

No. Strings are emitted with the same quoting that js-yaml determines is canonical.

Is my YAML uploaded?

No. Formatting happens entirely in your browser.

Related tools.