Tuesday, November 17, 2026 4,523 lists 78,992 records on file
List your app or device

  1. Home
  2. Developer Tools
  3. Code formatters
Ranked on the record · 22 apps

Best Code Formatters 2026

Facts read 21 Sep 2026 – 23 Oct 2026

Prettier leads this list of 22 (record score 5.5, free plan). Ruff is next (record score 4.9, free plan), and rustfmt is the next highest-placed with a free plan (record score 4.8).

Code formatters give code a uniform layout. Compare the languages they handle and where they run. This page orders tools by its record score, which weighs maker-published information, Android availability, a free way to try a tool and how fresh its facts are.

The standings: top 10

NameIn a lineRecord scorePrice fromTry it freeRuns onFacts read
01 PrettierPrettier parses supported code and prints it in a consistent style, with CLI and CI options.5.5Free planFree planWeb, Windows, Mac, Linux15 Oct 2026
02 Ruff4.9Free planFree planWeb, Windows, Mac, Linux29 Sep 2026
03 rustfmtrustfmt formats Rust code, including Cargo crate and workspace targets through cargo fmt.4.8Free planFree planWindows, Mac, Linux3 Oct 2026
04 SpotlessSpotless applies or checks formatting for source files through Gradle and Maven integrations.4.8Free planFree planWindows, Mac, Linux9 Oct 2026
05 UncrustifyUncrustify is a source code formatter for C-family languages, D, Java, Pawn and Vala on Linux, macOS and Windows.4.8Free planFree planWindows, Mac, Linux, Self-hosted8 Oct 2026
06 BlackBlack suits Python developers and teams who want a shared formatting style with limited configuration.4.7Free planFree planWindows, Mac, Linux, Self-hosted29 Sep 2026
07 elm-formatelm-format applies consistent formatting to Elm files, individually or across a directory.4.6Free planFree planWindows, Mac, Linux8 Oct 2026
08 gofmtgofmt formats Go programs and can print reformatted source, show differences or apply rewrite rules.4.6Free planFree planWindows, Mac, Linux1 Oct 2026
09 swift-format4.6Free planFree planiPhone & iPad, Mac, Linux11 Oct 2026
10 autopep8autopep8 applies pycodestyle fixes to Python formatting, including indentation, whitespace, imports and line length.4.5Free planFree planWindows, Mac, Linux, API3 Oct 2026

Use the platform details and pricing notes to check whether a formatter fits your setup and budget.

01

Prettier parses supported code and prints it in a consistent style, with CLI and CI options.

Free plan Open source WebWindowsMacLinuxBrowser extensionAPI+1
03

rustfmt

rustfmt formats Rust code, including Cargo crate and workspace targets through cargo fmt.

WindowsMacLinux
Record4.8 Visit
04

Spotless

Spotless applies or checks formatting for source files through Gradle and Maven integrations.

WindowsMacLinux
Record4.8 Visit
05

Uncrustify

Uncrustify is a source code formatter for C-family languages, D, Java, Pawn and Vala on Linux, macOS and Windows.

WindowsMacLinux+1
Record4.8 Visit
6
Black

Black suits Python developers and teams who want a shared formatting style with limited configuration.

WindowsMacLinux+1 Free plan Record4.7 Visit
7
elm-format

elm-format applies consistent formatting to Elm files, individually or across a directory.

WindowsMacLinux Free plan Record4.6 Visit
8
gofmt

gofmt formats Go programs and can print reformatted source, show differences or apply rewrite rules.

WindowsMacLinux Free plan Record4.6 Visit
9 iPhone & iPadMacLinux Free plan Record4.6 Visit
10
autopep8

autopep8 applies pycodestyle fixes to Python formatting, including indentation, whitespace, imports and line length.

WindowsMacLinux+1 Free plan Record4.5 Visit
11
clang-format

clang-format formats source code from the command line or editor, using options or project configuration files.

WindowsMacLinux+1 Free plan Record4.5 Visit
12
CSharpier

CSharpier parses and reformats C# and XML using its own formatting rules.

WindowsMacLinux+1 Free plan Record4.5 Visit
13
RuboCop

RuboCop analyzes and formats Ruby code, checking style, layout, naming and other issues.

LinuxSelf-hosted Free plan Record4.4 Visit
14
PHP CS Fixer

PHP CS Fixer detects and fixes PHP coding standard issues with built-in or custom rules.

LinuxSelf-hosted Free plan Record4.3 Visit
15
OCamlFormat

OCamlFormat formats OCaml code and comments using selectable profiles and project settings.

Linux Free plan Record4.2 Visit
16 WindowsMacLinux Free plan Record3.0 Visit
17
Deno

Deno is a runtime with Free, Pro, Builder and Enterprise plans.

$20 a month Record2.8 Visit
18
EditorConfig

EditorConfig is a free tool.

Free plan Record2.7 Visit
19
LuaFormatter

LuaFormatter is a free tool.

Free plan Record2.7 Visit
20
StyLua

StyLua is a free tool.

Free plan Record2.7 Visit
21
YAPF

YAPF formats Python code on Linux, macOS and Windows, with editor integration and changed-lines formatting.

WindowsMacLinux Free Record2.5 Visit
22
google-java-format

google-java-format formats Java on the JVM command line and in several Java IDEs and editors.

Free Record2.0 Visit

Before you choose

What programming languages can it format?

Start with the language you use. The listed examples include autopep8 and Black, clang-format, CSharpier, Dart formatter, elm-format, gofmt, google-java-format, LuaFormatter and OCamlFormat.

Java is among the languages google-java-format supports. Check the tool’s own page for language details before choosing.

What platforms can it run on?

Match the formatter to your environment. The category includes options for Linux, macOS and Windows, as well as self-hosted setups, APIs and extensions.

Check the specific tool’s platform details; the available options vary across the category.

Is there a free way to use a code formatter?

Free plans appear among the listed tools. Deno also has a Pro tier that costs $20 per month.

Review the tool’s pricing information to see whether the no-cost option meets your needs.

How should I check whether a formatter fits my workflow?

Confirm that it supports your language and platform, then review its maker’s page for setup and usage details.

For a specific deployment route, verify whether the tool offers it—for example, self-hosting, an API or an extension.

Questions

What is the role of a code formatter?
It arranges code in a consistent layout. Compare supported languages and platforms to find an option suited to your setup.
Which code formatters work on Linux, macOS, or Windows?
Linux, macOS and Windows are among the platform options in this category. Check the individual formatter’s details for the platform you need.
Can I use a formatter without paying?
Some tools in this category list free plans. Deno also lists a free plan and a Pro plan at $20 per month.
How can I pick a formatter for the language I use?
Verify that it handles your language, works on your platform and has pricing that suits you.