YAML Formatter

Pretty-print YAML.

js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules.

What YAML Formatter does

js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules.

YAML Formatter sits in the Developer group on purpose. It is not YAML to JSON (Parse YAML into JSON.) and not JSON to YAML (Dump JSON as YAML.). Choose this page when you need Pretty-print YAML. If you stretch YAML Formatter into a neighbor’s job, the result will look wrong even though the site chrome looks the same.

How to use YAML Formatter

  1. Keep this tab on YAML Formatter (/developer/yaml-formatter). Pasting into the wrong Developer tool (for example YAML to JSON) changes the job.
  2. Paste or type the input YAML Formatter expects. Path hint: developer · yaml formatter. Pretty-print YAML.
  3. Apply the YAML Formatter action only. JSON to YAML is a different transform (Dump JSON as YAML.). js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules.
  4. Copy the output of YAML Formatter if you need it elsewhere. Size/complexity still follows: js-yaml round-trip. Custom tags are limited.
  5. If the text job is actually Parse YAML into JSON., leave YAML Formatter and open YAML to JSON.

When not to use YAML Formatter

Skip YAML Formatter when a neighbor tool matches better — start with YAML to JSON or JSON to YAML — or when the description already warns the job will fail. In the tool’s own words: js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules.

Questions about YAML Formatter

What does YAML Formatter do that other Developer pages on this site do not?
js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules. Short version: Pretty-print YAML.
Does YAML Formatter upload my file or text to Tool-You servers?
No. YAML Formatter runs in this browser tab. Files stay on the device. Limit note: js-yaml round-trip. Custom tags are limited.
Should I use YAML to JSON instead of YAML Formatter?
Use YAML Formatter when you need Pretty-print YAML. Use YAML to JSON when you need Parse YAML into JSON. They share a category (Developer) but not the same job.
What are the limits of YAML Formatter?
js-yaml round-trip. Custom tags are limited. Also: js-yaml parse then dump (round-trip). Duplicate keys follow js-yaml rules.