Best Ruff Alternatives in 2026
Updated
20 apps from code formatting tools ranked against Ruff on the same published basis.
- 1Ruff vs dprint
- 2Ruff vs Prettier
- 3Ruff vs Black
- 4Ruff vs Biome
- 6Ruff vs CSharpier
- 7Ruff vs PHP CS Fixer
- 8Ruff vs swift-format
- 9Ruff vs clang-format
- 10Ruff vs rustfmt
- 11Ruff vs Spotless
- 12Ruff vs gofmt
- 13Ruff vs Scalafmt
- 14Ruff vs pgFormatter
- 15Ruff vs google-java-format
- 16Ruff vs shfmt
- 17Ruff vs Taplo
- 18Ruff vs js-beautify
- 19Ruff vs goimports
- 20Ruff vs yamlfmt
- 21Ruff vs Fantomas
Ruff alternatives compared
| # | App | Score | Free plan | From | Runs on |
|---|---|---|---|---|---|
| 1 | dprint | 8.1 | Free plan | Free | Browser, Linux, Mac, self-hosted, Windows |
| 2 | Prettier | 8.0 | Free plan | Free | API, Browser, Linux, Mac, Web, Windows |
| 3 | Black | 7.9 | Free plan | Free | Linux, Mac, self-hosted, Windows |
| 4 | Biome | 7.7 | Free plan | Free | Browser, Linux, Mac, Web, Windows |
| 6 | CSharpier | 7.5 | Free plan | Free | API, Linux, Mac, Windows |
| 7 | PHP CS Fixer | 7.5 | Free plan | Free | Linux, self-hosted |
| 8 | swift-format | 7.5 | No | — | Mac, iOS |
| 9 | clang-format | 7.4 | No | — | Browser, Linux, Mac, Windows |
| 10 | rustfmt | 7.4 | Free plan | Free | Linux, Mac, Windows |
| 11 | Spotless | 7.1 | No | — | — |
| 12 | gofmt | 7.1 | Free plan | Free | Linux, Mac, Windows |
| 13 | Scalafmt | 6.8 | No | — | — |
| 14 | pgFormatter | 6.8 | Free plan | Free | API, Linux, self-hosted, Web |
| 15 | google-java-format | 6.5 | No | — | — |
| 16 | shfmt | 6.4 | No | — | Linux, Windows, Mac |
| 17 | Taplo | 6.4 | Free plan | Free | API, Browser, Linux, Mac, Windows |
| 18 | js-beautify | 6.3 | No | — | Web |
| 19 | goimports | 6.2 | No | — | Web, Windows, Mac, Linux |
| 20 | yamlfmt | 6.1 | No | — | Linux, Mac, Windows |
| 21 | Fantomas | 5.9 | No | — | Web |
Make your app an alternative to Ruff
See the priceThe sponsored alternative slot on this page is labelled Sponsored.
Questions about Ruff alternatives
What is the best alternative to Ruff?
dprint, number 1 in code formatting tools with a score of 8.1 out of 10. The others here: Prettier, Black, Biome and 16 more.
What is the best free alternative to Ruff?
dprint is the best-ranked alternative with a free plan. 10 of the 20 alternatives here publish a free plan on their own pricing pages.
How are these alternatives ranked?
Ranked mobile-first: a phone app alongside the web or desktop product, a free tier and the depth of its documentation.
























