Best Code Formatting Tools in 2026
Updated
In short: Accessibility Test Framework for Android is ranked #1 of 34 as of 4 October 2026, ahead of swift-format and Black. The best-ranked option with a free plan is Black.
Choosing a formatter starts with the languages and platforms used in your development environment. dprint and Prettier open the ranking, with clang-format among the first entries. Compare supported languages and platforms with editor integration, changed-lines formatting, and ignore-file support. A library API may matter for integrating formatting into other software; license model, free-plan availability, and paid-from pricing are also listed for comparison. The 30 entries are ranked as a best-of selection, giving you technical and access details to weigh against your coding workflow.
34 code formatting tools ranked on what their makers publish — plans and prices, free tiers, platforms and the facts on their own pages.
Recognised 40% · Phone app 26% · Documented 20% · Free plan 14% of the score
- 1 Accessibility Test Framework for Android Android only RecognisedPhone appDocumentedFree plan 7.9Free Supported languages: PythonSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 2 swift-format iPhone only RecognisedPhone appDocumentedFree plan 6.8 Supported languages: SwiftSupported platforms: macOS, iOSEditor integration: Yes
- 3 Black No phone app RecognisedPhone appDocumentedFree plan 6.4Free Supported languages: PythonSupported platforms: Windows, macOS, Linux, local HTTP APIEditor integration: Yes
- 4 rustfmt No phone app RecognisedPhone appDocumentedFree plan 6.4Free Supported languages: RustSupported platforms: Windows, macOS, Linux, APIEditor integration: Yes
- 5 dprint No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported languages: 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, JuliaSupported platforms: Windows, macOS, Linux, WSL, Node.js, DenoEditor integration: Yes
- 6 gofmt No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported languages: GoSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 7 Prettier No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported languages: JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown, GFM, MDX v1, YAML, LWC, MJMLSupported platforms: Browser and JavaScript APIEditor integration: Yes
- 8 Taplo No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported languages: TOMLSupported platforms: Linux, macOS, Windows, Node.js, DockerEditor integration: Yes
- 9 Biome No phone app RecognisedPhone appDocumentedFree plan 6.2Free
- 10 pgFormatter No phone app RecognisedPhone appDocumentedFree plan 6.2Free
- 11 Ruff No phone app RecognisedPhone appDocumentedFree plan 6.2Free
- 12 autopep8 No phone app RecognisedPhone appDocumentedFree plan 5.8 Supported languages: PythonSupported platforms: OS independentEditor integration: No
- 13 clang-format No phone app RecognisedPhone appDocumentedFree plan 5.8 Supported languages: C, C++, Java, JavaScript, JSON, Objective-C, Protocol Buffers, C#, TableGen, TextProto, VerilogSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 14 Dart pub No phone app RecognisedPhone appDocumentedFree plan 5.8 Supported languages: DartSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 15 PHP CS Fixer No phone app RecognisedPhone appDocumentedFree plan 5.4Free Supported languages: PHPEditor integration: Yes
- 16 Scalafmt No phone app RecognisedPhone appDocumentedFree plan 5.4 Supported languages: Scala 2, Scala 3, sbt, Scala scriptsSupported platforms: CLI, editors, build tools, standalone libraryEditor integration: Yes
- 17 Spotless No phone app RecognisedPhone appDocumentedFree plan 5.4 Supported languages: ANTLR, C, C#, C++, CSS, Flow, GraphQL, Groovy, HTML, Java, JavaScript, JSON, JSX, Kotlin, Less, Markdown, Objective-C, Protobuf, Python, Scala, SCSS, Shell, SQL, TypeScript, Vue, YAML, Gherkin, Go, RDF, AnythingSupported platforms: Gradle, Maven, SBT, other build systemsEditor integration: Yes
- 18 stylish-haskell No phone app RecognisedPhone appDocumentedFree plan 5.4 Supported languages: HaskellSupported platforms: Windows, LinuxEditor integration: Yes
- 19 yamlfmt No phone app RecognisedPhone appDocumentedFree plan 5.4 Supported languages: YAMLSupported platforms: Windows, macOS, Linux
- 20 YAPF No phone app RecognisedPhone appDocumentedFree plan 5.4 Supported languages: PythonSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 21 CSharpier No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported languages: C#, XMLSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 22 elm-format No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported languages: ElmSupported platforms: Windows, macOS, LinuxEditor integration: Yes
- 23 Fantomas No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported languages: F#Supported platforms: web, self_hostedEditor integration: Yes
- 24 Fourmolu No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported languages: HaskellSupported platforms: web, windowsEditor integration: Yes
- 25 goimports No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported languages: GoSupported platforms: web, windows, macos, linuxEditor integration: Yes
Is your app on this list?
Numbered spots on this list can be sponsored. They are labelled, and the editorial order and scores never change for payment.
Questions about this list
Which code formatting tool is ranked first on Samsung Mobile US Press?
Accessibility Test Framework for Android is ranked #1 of 34 with a score of 7.9. swift-format is second and Black third.
How many of these have a free plan?
11 of the 25 on this page publish a free plan on their own pricing pages.
How is this list ranked?
Ranked mobile-first: a phone app alongside the web or desktop product, a free tier and the depth of its documentation. Paid placements never change a rank.






