Best Code Formatting Tools in 2026
Updated
34 code formatting tools ranked on what their makers publish — plans and prices, free tiers, platforms and the facts on their own pages.
34ranked
1free plans on this page
4 Oct 2026last checked
Input list Code Formatting Tools 9 channels on this page · 42 of 72 spec lines stated by the makers
Ch Tool Free planPaid fromSupported languagesSupported platformsEditor integrationIgnore filesChanged-lines formattingLibrary API Spec sheet Score
26 swift-format Free plannot statedPaid fromnot statedSupported languagesSwiftSupported platformsmacOS, iOSEditor integrationYesIgnore filesnot statedChanged-lines formattingnot statedLibrary APIYes 4/8spec lines stated 6.0
27 Fantomas Free plannot statedPaid fromnot statedSupported languagesF#Supported platformsweb, self hostedEditor integrationYesIgnore filesYesChanged-lines formattingnot statedLibrary APIYes 5/8spec lines stated 5.9
28 js-beautify Free planYesPaid fromnot statedSupported languagesJavaScript, JSON, React.js, HTML, CSS, SCSS, SASSSupported platformsWeb browser, Node.js, PythonEditor integrationYesIgnore filesnot statedChanged-lines formattingnot statedLibrary APIYes 5/8spec lines stated 5.9
29 Laravel Pint Free plannot statedPaid fromnot statedSupported languagesPHPSupported platformslinuxEditor integrationnot statedIgnore filesYesChanged-lines formattingYesLibrary APInot stated 4/8spec lines stated 5.8
30 Scalafmt Free planYesPaid fromnot statedSupported languagesScala 2, Scala 3, sbt, Scala scriptsSupported platformsCLI, editors, build tools, standalone libraryEditor integrationYesIgnore filesYesChanged-lines formattingYesLibrary APIYes 7/8spec lines stated 5.8
31 Spotless Free plannot statedPaid fromnot statedSupported languagesANTLR, 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 platformsGradle, Maven, SBT, other build systemsEditor integrationYesIgnore filesYesChanged-lines formattingYesLibrary APIYes 6/8spec lines stated 5.8
32 google-java-format Free plannot statedPaid fromnot statedSupported languagesJavaSupported platformsJVM command line; IntelliJ IDEA; Android Studio; Eclipse; Visual Studio CodeEditor integrationYesIgnore filesnot statedChanged-lines formattingYesLibrary APIYes 5/8spec lines stated 5.7
33 OCamlFormat Free planYesPaid fromnot statedSupported languagesOCamlSupported platformsnot statedEditor integrationYesIgnore filesYesChanged-lines formattingnot statedLibrary APIYes 5/8spec lines stated 5.7
34 UglifyJS Free planYesPaid fromnot statedSupported languagesnot statedSupported platformsnot statedEditor integrationnot statedIgnore filesnot statedChanged-lines formattingnot statedLibrary APInot stated 1/8spec lines stated 5.0
Compare all 9 in a table
| # | Tool | Score | Free plan | From | Free plan | Paid from | Supported languages | Supported platforms |
|---|---|---|---|---|---|---|---|---|
| 26 | swift-format | 6.0 | No | — | — | — | Swift | macOS, iOS |
| 27 | Fantomas | 5.9 | No | — | — | — | F# | web, self_hosted |
| 28 | js-beautify | 5.9 | No | — | Yes | — | JavaScript, JSON, React.js, HTML, CSS, SCSS, SASS | Web browser, Node.js, Python |
| 29 | Laravel Pint | 5.8 | No | — | — | — | PHP | linux |
| 30 | Scalafmt | 5.8 | No | — | Yes | — | Scala 2, Scala 3, sbt, Scala scripts | CLI, editors, build tools, standalone library |
| 31 | Spotless | 5.8 | No | — | — | — | 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, Anything | Gradle, Maven, SBT, other build systems |
| 32 | google-java-format | 5.7 | No | — | — | — | Java | JVM command line; IntelliJ IDEA; Android Studio; Eclipse; Visual Studio Code |
| 33 | OCamlFormat | 5.7 | No | — | Yes | — | OCaml | — |
| 34 | UglifyJS | 5.0 | Free plan | Free | Yes | — | — | — |
More in Developer Tools
All developer tools listsAccessibility Testing Software 168Log Management Software 107AI Coding Assistants 103Package Managers 93AI Agent Platforms 73Reverse Engineering Tools 73Software Composition Analysis Software 65Browser Automation Tools 63Integrated Development Environments 62Artifact repository software 60Code Playground Software 58Network Monitoring 56

