Developer Tools·Standings

Code Formatting Tools

Code formatting tools automatically arrange source code, so the choice depends on supported languages, editor integration, and where the formatter runs. They can also differ in licensing and configuration.

Use the board's signal score out of 10 as a summary of published information. Check the API, open-source mark, and free-tier mark, then compare platforms, ignore-file support, changed-lines formatting, and library access.

  • 34 platforms
  • 25 with a free tier
  • Checked 23 Sept 2026
  1. 1
    P
    Prettierprettier.io

    Open-source formatter for JavaScript, TypeScript, web markup and configuration files.

    7.7 APIOpenFree Free tier
  2. 2
    A
    Avidemuxavidemux.sourceforge.net

    Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks.

    7.4 APIOpenFree Free tier
  3. 3
    ZF
    Zig fmtziglang.org

    Canonical formatter for Zig code with a check mode that leaves files unchanged.

    6.6 APIOpenFree Free tier
  4. 4
    B
    Blackblack.readthedocs.io

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

    6.6 APIOpenFree Free tier
  5. 5
    F
    Fourmolufourmolu.github.io

    Configurable Haskell formatter with options for indentation, imports and comments.

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

    Rust formatter for source files, standard input and Cargo crates or workspaces.

    6.6 APIOpenFree Free tier
  7. 7
    U
    Uncrustifygithub.com

    Source beautifier for C-family, Java, D, Pawn and Vala code with 901 options.

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

    Ruff is a Python linter and code formatter written in Rust.

    6.4 APIOpenFree Free tier
  9. 9
    LP
    Laravel Pintlaravel.com

    PHP code style tool that applies Laravel's conventions without configuration.

    6.3 APIOpenFree Free tier
  10. 10
    CF
    clang-formatclang.llvm.org

    Source formatter for C-family languages, Java, JavaScript, JSON, and C# with built-in styles.

    6.3 APIOpenFree Free tier
  11. 11
    O
    Ormolugithub.com

    Haskell formatter using GHC parsing and a fixed style designed for small diffs.

    6.3 APIOpenFree Free tier
  12. 12
    F
    Fantomasfsprojects.github.io

    Configurable F# formatter with defaults aligned to Microsoft's conventions.

    6.3 APIOpenFree Free tier
  13. 13
    S
    shfmtgithub.com

    Shell formatter for POSIX, Bash, Zsh, and mksh files; open source and free.

    6.2 APIOpenFree Free tier
  14. 14
    T
    Taplotaplo.tamasfe.dev

    TOML toolkit that validates, formats, queries and converts TOML to JSON.

    6.2 APIOpenFree Free tier
  15. 15
    B
    Biomebiomejs.dev

    Web toolchain that formats and checks JavaScript, TypeScript, JSON, CSS, HTML, and more.

    6.2 APIOpenFree Free tier
  16. 16
    SH
    stylish-haskellgithub.com

    stylish-haskell is a Haskell code prettifier designed to help with formatting tasks such as cleaning up import statements.

    6.1 APIOpenFree Free tier
  17. 17
    A
    autopep8github.com

    Python formatter that fixes most PEP 8 issues found by pycodestyle.

    6.1 APIOpenFree Free tier
  18. 18
    D
    dprintdprint.dev

    Pluggable formatter for many languages, including TypeScript, JSON, Markdown, CSS and Python.

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

    Elm formatter that applies rules from the language's style guide to files or directories.

    6.1 APIOpenFree Free tier
  20. 20
    G
    gofmtgo.dev

    Gofmt automatically formats Go programs using tabs for indentation and blanks for alignment.

    6.1 APIOpenFree Free tier
  21. 21
    S
    Scalafmtscalameta.org

    Scala formatter that runs in editors, build tools, or terminals with a free plan.

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

    Swift formatter and style checker with JSON configuration; free and open source.

    6.1 APIOpenFree Free tier
  23. 23
    C
    CSharpiercsharpier.com

    Open-source formatter for C# and XML with built-in format checking.

    6.1 APIOpenFree Free tier
  24. 24
    S
    Spotlessgithub.com

    Spotless formats source code and can check files for formatting violations or apply fixes.

    6.1 APIOpenFree Free tier
  25. 25
    G
    goimportspkg.go.dev

    Go formatter that adds missing imports and removes unused ones; free and open source.

    6.1 APIOpenFree Free tier

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

How to choose

Which programming languages does it need to format?

Start with the languages in your projects. Supported languages are a direct comparison point, so a formatter should list the language you need before you add it to an editor workflow.

Prettier, CSharpier, Taplo, pgFormatter, UglifyJS, autopep8, Black, Fourmolu, Laravel Pint, rustfmt, Uncrustify, and Zig fmt are examples with different language focuses. Match the tool to your code rather than assuming one formatter covers every language.

Which platforms and editors does it support?

Choose a formatter that runs on the operating systems and editors used by your team. Linux, macOS, and Windows are listed platform comparisons, with self-hosted, web, and API options also appearing.

Editor integration determines how formatting is started and where its settings live. Check that the tool fits your editor, then confirm whether a library API is available when another program needs to call the formatter.

Can it ignore files and format changed lines?

Ignore-file support lets you exclude paths from formatting, which can help keep generated or external files untouched. Confirm the formatter's approach before adding repository rules.

Changed-lines formatting focuses work on edits rather than a full file. Compare this feature with the team's review process and check whether the tool documents how the setting works.

What license model and price should you choose?

License model matters when code must be reviewed, redistributed, or hosted internally. Read the published license information and confirm it fits your project before adoption.

The listed tools are free, with free plans shown for Prettier, CSharpier, Taplo, pgFormatter, UglifyJS, autopep8, Black, Fourmolu, Laravel Pint, rustfmt, Uncrustify, and Zig fmt. Pricing alone does not replace a platform, language, or integration check.

Does it offer an API for other software?

A public API lets another program request formatting instead of relying on a manual editor action. Check for API support when formatting belongs in a larger workflow.

Also compare documentation depth. Clear instructions can make setup and maintenance easier, while a free tier gives you a way to try the published feature set before committing.

Questions

What do code formatting tools do?

They arrange source code according to a formatter's rules. Compare supported languages, editor integration, platforms, ignore files, and changed-lines formatting.

Which code formatters are open source?

Prettier, CSharpier, Fourmolu, and rustfmt are listed with open-source pricing notes. Other listed tools show a free plan without that note.

Are code formatting tools free?

The listed tools show free pricing or a free plan, including Prettier, Black, autopep8, and Zig fmt. Check the license model and platform support before use.

Can a formatter run on macOS, Windows, and Linux?

Platform support differs by tool. Linux, macOS, and Windows are comparison fields, so verify the specific formatter's published platform list.

What is changed-lines formatting?

Changed-lines formatting applies formatting to edited lines instead of treating the whole file as changed. Check whether the formatter documents this option.

Why does a code formatter need an API?

A public API lets another program call the formatter directly. It can connect formatting with an editor, build step, or other software workflow.

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