Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

yamlfmt

Free#17 of 34 in Code Formatting Tools

yamlfmt: A configurable YAML formatter for recursive checks, CI workflows, and Go-based tooling. Ranked #17 of 34 in Code Formatting Tools by our editors (7.6/10); pricing: Free plan; best for YAML-heavy repositories.

7.6/10Editor score
yamlfmt7.6 Visit yamlfmt

At a glance

  • Editor score
    7.6 / 10
  • Pricing
    Free plan
  • Best for
    YAML-heavy repositories
  • Free plan
    Yes
  • Paid from
    Free
  • Supported languages
    YAML
  • Facts checked
    21 Sep 2026
yamlfmt screenshot
  • Where it wins

    • Formats YAML files and directories recursively
    • Supports lint, dry-run, standard input, and standard output modes
    • Works with pre-commit, Docker, GitLab CI, and Go libraries
  • Where it doesn't

    • Supports YAML only
    • Does not format changed lines only
    • Maintained by an individual contributor, not officially by Google

Our verdict on yamlfmt

yamlfmt is an open-source YAML formatter available as a standalone command-line binary or Go module. It is designed for teams maintaining YAML-heavy repositories across Windows, macOS, and Linux. Recursive formatting covers files and directories, while lint mode reports formatting differences and exits with a failure status. Dry-run mode shows which files differ without rewriting them, and standard input/output support fits shell-based workflows and automation.

Its strongest fit is repository-wide consistency with configurable path and output rules. Include and exclude settings can be combined with Gitignore-based exclusions, helping teams control which files are processed. Formatting options cover indentation, line endings, comments, whitespace, and quoting, with support for alternate KYAML formatting. That breadth makes yamlfmt suitable for repositories with varied YAML conventions, while the Go library provides an option for integrating formatting into Go tooling rather than relying only on the command line.

For automation, yamlfmt can run as a pre-commit hook or in containerized CI/CD workflows, with integrations listed for pre-commit, Docker, and GitLab CI. Its open-source licensing and free plan make it a practical choice when a YAML-focused formatter is preferred over a broader multi-language tool. Teams should choose it when recursive formatting, ignore-aware paths, lint checks, and configurable output matter most. It is less suitable for projects that require support for languages beyond YAML, formatting only changed lines, or an officially Google-supported project, since the project is maintained by an individual contributor and is not officially supported by Google.

Your product? Our editors can test yamlfmt in depth and publish a review, labelled as paid · from $149/mo →

yamlfmt pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

yamlfmt fact sheet

Free planYes
Paid fromFree
Supported languagesYAML
Supported platformsWindows, macOS, Linux
Editor integrationNot verified
Ignore filesYes
Changed-lines formattingNo
Library APIYes
License modelOpen_source
DeploymentSelf-hosted, Desktop
PlatformsWindows, macOS, Linux
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations3 integrations: pre-commit, Docker, GitLab CI
PricingFree plan
Websitegithub.com
Facts checked21 Sep 2026

yamlfmt integrations

yamlfmt lists 3 integrations on its own site.

  • pre-commit
  • Docker
  • GitLab CI

Alternatives to yamlfmt

See all yamlfmt alternatives →

Used yamlfmt? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used yamlfmt for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — yamlfmt 7.6/10

yamlfmt is listed in our Code Formatting Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/yamlfmt/"><img src="https://www.itechguides.com/best/badge/yamlfmt.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update