Best Dart formatter Alternatives in 2026
Taken from Code formatters, where Dart formatter is listed too, in the same order.
- 1
8.3 Club scorePrettier
Prettier is a free, open-source code formatter that parses code and prints it in a consistent style, taking line length into account.
- Free plan
- Open source
- Windows · macOS · Linux · Web
- 2
8.0 Club scoreRuff
Ruff is a free Python linter and code formatter written in Rust.
- Free plan
- Windows · macOS · Linux · Web
- 3 7.9 Club score
rustfmt
rustfmt is a free, open-source formatter for Rust code that applies style guidelines to files or code supplied through standard input.
- Free plan
- Windows · macOS · Linux
- 4 7.9 Club score
Uncrustify
Uncrustify is a free, open-source formatter for C, C++, C#, Objective-C, D, Java, Pawn and Vala.
- Free plan
- Windows · macOS · Linux · Self-hosted
- 5 7.7 Club score
Black
Black is a free Python formatter that follows PEP 8 and applies a consistent style across code.
- Free plan
- Windows · macOS · Linux · Self-hosted
- 6 7.6 Club score
clang-format
- Free plan
- Windows · macOS · Linux · Browser extension
- 7 7.4 Club score
gofmt
gofmt is the Go source formatter included in Go installations, available on Linux, macOS, and Windows.
- Free plan
- Windows · macOS · Linux
- 8 7.4 Club score
Spotless
Spotless checks source files for formatting violations and can apply fixes.
- Free plan
- Windows · macOS · Linux
- 9 7.2 Club score
autopep8
- Free plan
- Windows · macOS · Linux · API
- 10 7.2 Club score
elm-format
elm-format is a free, open-source command-line formatter for Elm.
- Free plan
- Windows · macOS · Linux
- 11
7.2 Club scoreCSharpier
CSharpier formats C# and XML by parsing code and reprinting it according to its own rules.
- Free plan
- Windows · macOS · Linux · API
- 12 7.1 Club score
swift-format
swift-format is a free, open-source tool for formatting and linting Swift source code, with components for code-formatting transformations.
- Free plan
- macOS · Linux · iPhone and iPad
- 13
6.9 Club scoreRuboCop
- Free plan
- Linux · Self-hosted
- 14 6.8 Club score
PHP CS Fixer
- Free plan
- Linux · Self-hosted
- 15 6.7 Club score
OCamlFormat
- Free plan
- Linux
- 16 5.5 Club score
EditorConfig
- Free plan
- 17 5.5 Club score
LuaFormatter
- Free plan
- 18 5.5 Club score
StyLua
- Free plan
- 19 5.3 Club score
YAPF
- Windows · macOS · Linux
- 20 5.1 Club score