Best shfmt Alternatives in 2026
Taken from Code Formatting Tools, where shfmt 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.2 Club score
Avidemux
- Free plan
- Open source
- Windows · macOS · Linux · Web
- 3
8.0 Club scoreRuff
Ruff is a free Python linter and code formatter written in Rust.
- Free plan
- Windows · macOS · Linux · Web
- 4 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
- 5 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
- 6 7.8 Club score
Fourmolu
Fourmolu is a configurable formatter for Haskell source code and a fork of Ormolu.
- Free plan
- Windows · Linux · Web
- 7 7.7 Club score
Ormolu
Ormolu formats Haskell source code using GHC’s parser, which avoids parsing problems caused by haskell-src-exts.
- Free plan
- Windows · macOS · Linux · Web
- 8 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
- 9 7.7 Club score
Zig fmt
Zig fmt is the source formatter for Zig, producing a canonical style for Zig code.
- Free plan
- Windows · macOS · Linux
- 10 7.7 Club score
goimports
goimports is a free, open-source tool for Go developers that corrects import lines and formats code.
- Free plan
- Windows · macOS · Linux · Web
- 11
7.6 Club scoreFantomas
Fantomas is a free, open-source formatter for F# source code.
- Free plan
- Windows · macOS · Linux · Web
- 12
7.6 Club scoreBiome
Biome is a free toolchain for maintaining the health of web projects.
- Free plan
- Windows · macOS · Linux · Web
- 13 7.6 Club score
clang-format
- Free plan
- Windows · macOS · Linux · Browser extension
- 14 7.4 Club score
dprint
dprint is a command-line application that automatically formats code.
- Free plan
- Windows · macOS · Linux · Browser extension
- 15 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
- 16
7.4 Club scoreScalafmt
Scalafmt is a free code formatter that helps Scala teams apply consistent formatting.
- Free plan
- Windows · macOS · Linux · Self-hosted
- 17 7.4 Club score
Spotless
Spotless checks source files for formatting violations and can apply fixes.
- Free plan
- Windows · macOS · Linux
- 18 7.3 Club score
stylish-haskell
- Free plan
- Windows · Linux
- 19 7.3 Club score
Taplo
Taplo is a free TOML toolkit for validating, formatting and querying documents, with support for TOML 1.0.0.
- Free plan
- Windows · macOS · Linux · Browser extension
- 20 7.3 Club score
Laravel Pint
Laravel Pint is a free, open-source PHP code style fixer that applies Laravel’s coding style by default.
- Free plan
- macOS · Self-hosted