Best Code Formatting Tools in 2026
Updated
In short: Accessibility Test Framework for Android is ranked #1 of 34 as of 5 October 2026, ahead of Black and Prettier. The best-ranked option with a free plan is Black.
Keeping code style consistent can make shared projects easier to work with. Compare tools on supported languages and platforms, editor integration, and whether they can format only changed lines or respect ignore files. A library API may matter if you want to call formatting from another application; license model, free-plan availability, and paid-from pricing help clarify access and cost. Accessibility Test Framework for Android, Black, and Prettier illustrate the range of entries here, with Ruff, rustfmt, Biome, dprint, and gofmt also included. Match the listed capabilities to the languages, editors, and workflows your projects use.
34 code formatting tools ranked on what their makers publish — plans and prices, free tiers, platforms and the facts on their own pages.
14 of the 25 here have a free tier you can use, 0 have open-source code on record, and 0 have full bars: free, open, on most of your devices and documented.
| # | App | Signal | Free tier | Open code | Devices | From | Score |
|---|---|---|---|---|---|---|---|
| 1 | Accessibility Test Framework for AndroidWindows · Mac · Linux · Android | Three bars | — | 4 of 6 | Free | 6.6 | |
| 2 | BlackWindows · Mac · Linux · Self-hosted | Three bars | — | 3 of 6 | Free | 6.6 | |
| 3 | PrettierWeb · Windows · Mac · Linux · API · Extension | Three bars | — | 4 of 6 | Free | 6.6 | |
| 4 | RuffWeb · Windows · Mac · Linux · Self-hosted | Three bars | — | 4 of 6 | Free | 6.6 | |
| 5 | rustfmtWindows · Mac · Linux | Three bars | — | 3 of 6 | Free | 6.6 | |
| 6 | BiomeWeb · Windows · Mac · Linux · Extension | Three bars | — | 4 of 6 | Free | 6.5 | |
| 7 | CSharpierWindows · Mac · Linux · API | Three bars | — | 3 of 6 | Free | 6.5 | |
| 8 | dprintWindows · Mac · Linux · Self-hosted · Extension | Three bars | — | 3 of 6 | Free | 6.5 | |
| 9 | gofmtWindows · Mac · Linux | Three bars | — | 3 of 6 | Free | 6.5 | |
| 10 | TaploWindows · Mac · Linux · API · Extension | Three bars | — | 3 of 6 | Free | 6.5 | |
| 11 | js-beautifyWeb | Two bars | — | 1 of 6 | Free | 6.4 | |
| 12 | pgFormatterWeb · Linux · Self-hosted · API | Two bars | — | 2 of 6 | Free | 6.4 | |
| 13 | PHP CS FixerLinux · Self-hosted | Two bars | — | 1 of 6 | Free | 6.4 | |
| 14 | UglifyJSLinux · Self-hosted · API | Two bars | — | 1 of 6 | Free | 6.3 | |
| 15 | autopep8Windows · Mac · Linux · API | Two bars | — | — | 3 of 6 | — | 5.6 |
| 16 | clang-formatWindows · Mac · Linux · Extension | Two bars | — | — | 3 of 6 | — | 5.6 |
| 17 | Dart pubWindows · Mac · Linux | Two bars | — | — | 3 of 6 | — | 5.6 |
| 18 | elm-formatWindows · Mac · Linux | One bar | — | — | 3 of 6 | — | 5.4 |
| 19 | goimportsWeb · Windows · Mac · Linux | One bar | — | — | 4 of 6 | — | 5.4 |
| 20 | OrmoluWeb · Windows · Mac · Linux | One bar | — | — | 4 of 6 | — | 5.4 |
| 21 | shfmtWindows · Mac · Linux | One bar | — | — | 3 of 6 | — | 5.4 |
| 22 | yamlfmtWindows · Mac · Linux | One bar | — | — | 3 of 6 | — | 5.4 |
| 23 | YAPFWindows · Mac · Linux | One bar | — | — | 3 of 6 | — | 5.4 |
| 24 | FourmoluWeb · Windows | No signal | — | — | 2 of 6 | — | 5.3 |
| 25 | stylish-haskellWindows · Linux | One bar | — | — | 2 of 6 | — | 5.3 |
Compare all 25 in a table
| # | App | Score | Free plan | From | Free plan | Paid from | Supported languages | Supported platforms |
|---|---|---|---|---|---|---|---|---|
| 1 | Accessibility Test Framework for Android | 6.6 | Free plan | Free | Yes | — | Python | Windows, macOS, Linux |
| 2 | Black | 6.6 | Free plan | Free | Yes | — | Python | Windows, macOS, Linux, local HTTP API |
| 3 | Prettier | 6.6 | Free plan | Free | — | — | JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown, GFM, MDX v1, YAML, LWC, MJML | Browser and JavaScript API |
| 4 | Ruff | 6.6 | Free plan | Free | Yes | — | — | — |
| 5 | rustfmt | 6.6 | Free plan | Free | — | — | Rust | Windows, macOS, Linux, API |
| 6 | Biome | 6.5 | Free plan | Free | Yes | — | — | — |
| 7 | CSharpier | 6.5 | Free plan | Free | — | — | C#, XML | Windows, macOS, Linux |
| 8 | dprint | 6.5 | Free plan | Free | — | — | TypeScript, JavaScript, JSX, TSX, JSON, JSONC, Markdown, TOML, CSS, SCSS, Sass, Less, Dockerfile, C#, VB, Python, Jupyter, Go, Swift, HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks, Vento, GraphQL, YAML, PHP, Quarto, Pandoc, R Markdown, LaTeX, BibTeX, R, Julia | Windows, macOS, Linux, WSL, Node.js, Deno |
| 9 | gofmt | 6.5 | Free plan | Free | — | — | Go | Windows, macOS, Linux |
| 10 | Taplo | 6.5 | Free plan | Free | Yes | — | TOML | Linux, macOS, Windows, Node.js, Docker |
| 11 | js-beautify | 6.4 | Free plan | Free | Yes | — | JavaScript, JSON, React.js, HTML, CSS, SCSS, SASS | Web browser, Node.js, Python |
| 12 | pgFormatter | 6.4 | Free plan | Free | Yes | — | — | — |
| 13 | PHP CS Fixer | 6.4 | Free plan | Free | Yes | — | PHP | — |
| 14 | UglifyJS | 6.3 | Free plan | Free | Yes | — | — | — |
| 15 | autopep8 | 5.6 | No | — | Yes | — | Python | OS independent |
| 16 | clang-format | 5.6 | No | — | Yes | — | C, C++, Java, JavaScript, JSON, Objective-C, Protocol Buffers, C#, TableGen, TextProto, Verilog | Windows, macOS, Linux |
| 17 | Dart pub | 5.6 | No | — | Yes | — | Dart | Windows, macOS, Linux |
| 18 | elm-format | 5.4 | No | — | Yes | — | Elm | Windows, macOS, Linux |
| 19 | goimports | 5.4 | No | — | — | — | Go | web, windows, macos, linux |
| 20 | Ormolu | 5.4 | No | — | — | — | Haskell | Linux, macOS, Windows, web |
| 21 | shfmt | 5.4 | No | — | — | — | POSIX Shell, Bash, Zsh, mksh, and Bats | Linux, Windows, macOS |
| 22 | yamlfmt | 5.4 | No | — | Yes | — | YAML | Windows, macOS, Linux |
| 23 | YAPF | 5.4 | No | — | — | — | Python | Windows, macOS, Linux |
| 24 | Fourmolu | 5.3 | No | — | — | — | Haskell | web, windows |
| 25 | stylish-haskell | 5.3 | No | — | Yes | — | Haskell | Windows, Linux |
Is your app on this list?
Numbered spots on this list can be sponsored, and a sponsored row is labelled as paid.
Questions about this list
Which code formatting tool is ranked first on Freedom251?
Accessibility Test Framework for Android is ranked #1 of 34 with a score of 6.6. Black is second and Prettier third.
How many of these have a free plan?
14 of the 25 on this page publish a free plan on their own pricing pages.
How is this list ranked?
Ranked free-and-open first: a usable free tier and open-source code, then the platforms it runs on and its documentation.




