Best Code Formatting Tools in 2026

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
#ToolScoreFree planFromFree planPaid fromSupported languagesSupported platforms
26swift-format6.0No———SwiftmacOS, iOS
27Fantomas5.9No———F#web, self_hosted
28js-beautify5.9No—Yes—JavaScript, JSON, React.js, HTML, CSS, SCSS, SASSWeb browser, Node.js, Python
29Laravel Pint5.8No———PHPlinux
30Scalafmt5.8No—Yes—Scala 2, Scala 3, sbt, Scala scriptsCLI, editors, build tools, standalone library
31Spotless5.8No———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, AnythingGradle, Maven, SBT, other build systems
32google-java-format5.7No———JavaJVM command line; IntelliJ IDEA; Android Studio; Eclipse; Visual Studio Code
33OCamlFormat5.7No—Yes—OCaml—
34UglifyJS5.0Free planFreeYes———

More in Developer Tools

All developer tools lists