Developer Tools·Standings

Code Formatters Compared

Code formatters rewrite source code into a consistent style; the choice depends on the language you use and where the tool must run. Compare platform support, integrations, API access and licensing before choosing.

The board shows a signal score out of 10 based on what makers publish. API, open-source and free-tier marks make those options easier to spot; pricing notes show whether a paid plan or trial applies.

  • 22 platforms
  • 19 with a free tier
  • Checked 23 Oct 2026
  1. 1
    P
    Prettierprettier.io

    Prettier parses source code and prints it back in a consistent style, wrapping lines to fit the configured maximum width.

    7.7 APIOpenFree Free tier
  2. 2
    B
    Blackblack.readthedocs.io

    Black is an opinionated code formatter that formats Python code with consistent style.

    6.6 APIOpenFree Free tier
  3. 3
    R
    rustfmtrust-lang.github.io

    A free Rust formatter that handles files, standard input, and Cargo workspaces.

    6.6 APIOpenFree Free tier
  4. 4
    U
    Uncrustifygithub.com

    A free source-code beautifier with 901 settings for spacing, indentation, braces, comments, and embedded SQL.

    6.4 APIOpenFree Free tier
  5. 5
    R
    Ruffdocs.astral.sh

    A free Python tool for code checks, formatting, and fixing issues such as unused imports.

    6.4 APIOpenFree Free tier
  6. 6
    CF
    clang-formatclang.llvm.org

    A free tool that applies consistent code layout using built-in or project-specific styles.

    6.3 APIOpenFree Free tier
  7. 7
    A
    autopep8github.com

    A free Python formatter that fixes PEP 8 issues such as spacing, indentation, and imports.

    6.1 APIOpenFree Free tier
  8. 8
    EF
    elm-formatgithub.com

    A free Elm formatter that applies Elm style rules to files or folders.

    6.1 APIOpenFree Free tier
  9. 9
    G
    gofmtgo.dev

    A free Go formatter that can reformat source files and documentation comments.

    6.1 APIOpenFree Free tier
  10. 10
    SF
    swift-formatgithub.com

    A free Swift formatter and linter with configurable rules in a JSON file.

    6.1 APIOpenFree Free tier
  11. 11
    C
    CSharpiercsharpier.com

    A free C# and XML formatter that applies its own rules and flags files needing changes.

    6.1 APIOpenFree Free tier
  12. 12
    S
    Spotlessgithub.com

    A free formatter that checks or fixes many formats through Gradle and Maven.

    6.1 APIOpenFree Free tier
  13. 13
    R
    RuboCoprubocop.org

    RuboCop is a Ruby static code analyzer and formatter based on the community Ruby Style Guide.

    6.0 APIOpenFree Free tier
  14. 14
    PC
    PHP CS Fixercs.symfony.com

    A free PHP tool that fixes coding standards using built-in or custom rules.

    5.9 APIOpenFree Free tier
  15. 15
    O
    OCamlFormatgithub.com

    OCamlFormat is a code formatter for OCaml.

    5.8 APIOpenFree Free tier
  16. 16
    DF
    5.1 APIOpenFree Free tier
  17. 17
    E
    EditorConfigEditorConfig

    A free tool for sharing basic editor settings across projects.

    4.6 APIOpenFree Free tier
  18. 18
    L
    LuaFormatterKoihik

    A free formatter for Lua code.

    4.6 APIOpenFree Free tier
  19. 19
    S
    StyLuaJohnnyMorganz

    A free formatter for Lua code.

    4.6 APIOpenFree Free tier
  20. 20
    Y
    YAPFgithub.com

    A free, open-source Python formatter that can format selected changed lines and read ignore files.

    4.3 APIOpenFree —
  21. 21
    D
    Denodeno.com

    A platform for Deno projects, with plans ranging from free to $200 per month.

    4.1 APIOpenFree From $20/mo
  22. 22
    GJ
    google-java-formatgithub.com

    A free Java formatter for the JVM command line and several code editors.

    3.8 APIOpenFree —

Places #1, #2, #3, #4, #5 on this board are open to sponsors. Take #1 · Other ways to advertise

How to choose

Which language does it need to format?

Choose a formatter that lists the language in your project. Google Java Format, for example, lists Java support.

If your project uses several languages, check whether you need separate tools and whether your editor or build process can run them together.

Which platforms does it need to run on?

Match the platform mark to your setup: Linux, macOS, Windows, self-hosted use, an API or an extension.

Self-hosted and API options can suit automated workflows, while an extension may fit an editor-based routine.

Do you need an API or extension?

Use the API mark when another app or an automated process must call the formatter. Choose an extension mark when you want formatting inside a supported editor.

If neither applies, a standalone formatter may be enough; confirm how it connects to your existing tools.

Is a free plan or open-source code important?

Use the free-tier mark to find tools with a free plan, and the open-source mark to identify code that is published under an open-source model.

Pricing differs by product. Deno lists a Free plan and a Pro plan at $20 a month; check the product's terms for current limits and trial details.

Questions

What does a code formatter do?

It rewrites source code into a consistent layout and style, helping files follow the formatter's rules.

Which code formatters run on Windows?

Use the Windows platform mark on the board, then confirm the tool's current installation and language support.

Are code formatters free?

The free-tier mark identifies a free plan. Deno lists a Free plan and a Pro plan at $20 a month.

Is there an open-source code formatter?

Yes. CSharpier and google-java-format are listed with open-source pricing notes.

Can a code formatter work through an API?

Yes. The API mark identifies tools that list API access; check the product details for how to connect it.

Some top positions on this board can be paid placements, standing where they were sold. The facts on each platform are not for sale. How we rank · Disclosure