Best Code Formatting Tools in 2026
30 code formatting tools ranked on what their makers publish — plans and prices, free tiers, platforms and the facts on their own pages.
30ranked
18free plans on this page
3 Oct 2026last checked
#1 Prettier Top pick · 8.8 Free plan · Free
#2 dprint Runner-up · 8.6 Free plan · Free
#3 clang-format Also great · 8.5 Free plan · Free- Free plan apiextensionLinuxmacOSWebWindows
- Supported languages
- JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown, GFM, MDX v1, YAML, LWC, MJML
- Supported platforms
- Browser and JavaScript API
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan extensionLinuxmacOSself-hostedWindows
- 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, Julia
- Supported platforms
- Windows, macOS, Linux, WSL, Node.js, Deno
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan extensionLinuxmacOSWindows
- Free plan
- Yes
- Supported languages
- C, C++, Java, JavaScript, JSON, Objective-C, Protocol Buffers, C#, TableGen, TextProto, Verilog
- Supported platforms
- Windows, macOS, Linux
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan LinuxmacOSself-hostedWindows
- Free plan
- Yes
- Supported languages
- Python
- Supported platforms
- Windows, macOS, Linux, local HTTP API
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan extensionLinuxmacOSWebWindows
- Free plan
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan LinuxmacOSself-hostedWebWindows
- Free plan
- Yes
RecognisedDocumentedPlatformsFree planFree trialFree About RuffVisit site - Free plan LinuxmacOSWindows
- Supported languages
- Rust
- Supported platforms
- Windows, macOS, Linux, API
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan LinuxmacOSWindows
- Supported languages
- Go
- Supported platforms
- Windows, macOS, Linux
- Editor integration
- Yes
- Ignore files
- No
RecognisedDocumentedPlatformsFree planFree trial - Free plan
- Free plan
- Yes
- Supported languages
- Scala 2, Scala 3, sbt, Scala scripts
- Supported platforms
- CLI, editors, build tools, standalone library
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan apiLinuxself-hostedWeb
- Free plan
- Yes
RecognisedDocumentedPlatformsFree planFree trial - WindowsmacOSLinux
- Supported languages
- C#, XML
- Supported platforms
- Windows, macOS, Linux
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan apiLinuxmacOSWindows
- Free plan
- Yes
- Supported languages
- Python
- Supported platforms
- OS independent
- Editor integration
- No
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial -
- 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, Anything
- Supported platforms
- Gradle, Maven, SBT, other build systems
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan
- Free plan
- Yes
- Supported languages
- PHP
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - LinuxWindowsmacOS
- Supported languages
- POSIX Shell, Bash, Zsh, mksh, and Bats
- Supported platforms
- Linux, Windows, macOS
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - WebWindowsmacOSLinux
- Supported languages
- Go
- Supported platforms
- web, windows, macos, linux
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan Web
- Free plan
- Yes
- Supported languages
- JavaScript, JSON, React.js, HTML, CSS, SCSS, SASS
- Supported platforms
- Web browser, Node.js, Python
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - WebWindowsmacOSLinux
- Supported languages
- Haskell
- Supported platforms
- Linux, macOS, Windows, web
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan WindowsmacOSLinux
- Free plan
- Yes
- Supported languages
- C, C++, C#, Objective-C, D, Java, Pawn, Vala
- Supported platforms
- Linux, OS X, Windows
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan WindowsmacOSLinux
- Free plan
- Yes
- Supported languages
- Elm
- Supported platforms
- Windows, macOS, Linux
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan WindowsmacOSLinux
- Free plan
- Yes
- Supported languages
- TOML
- Supported platforms
- Linux, macOS, Windows, Node.js, Docker
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial - macOSiOS
- Supported languages
- Swift
- Supported platforms
- macOS, iOS
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free planOpen source WebWindowsmacOSLinux
- Free plan
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Free plan WindowsmacOSLinux
- Free plan
- Yes
- Supported languages
- Zig
- Supported platforms
- Windows, macOS, Linux
- Editor integration
- Yes
RecognisedDocumentedPlatformsFree planFree trial - Web
- Supported languages
- F#
- Supported platforms
- web, self_hosted
- Editor integration
- Yes
- Ignore files
- Yes
RecognisedDocumentedPlatformsFree planFree trial
Is your tool 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 Specifiction?
Prettier is ranked #1 of 30 with a score of 8.8. dprint is second and clang-format third.
How many of these have a free plan?
18 of the 25 on this page publish a free plan on their own pricing pages.
How is this list ranked?
Ranked on what each maker publishes, the fullest spec sheet first: how deeply the product is documented, the platforms it runs on, a free tier or trial to test it, and its standing. Paid placements never change a rank.
More in Developer Tools
All developer tools listsAccessibility Testing Software 131AI Coding Assistants 101Package Managers 93Log Management Software 80AI Agent Platforms 66Artifact repository software 62Software Composition Analysis Software 54Continuous Integration Software 51Development Environment Managers 50Code review software 48Uptime Monitoring Software 48DevOps analytics software 46



























