FREEDOM251

Freedom251 › Black

Instead of Black

Black alternatives

Black is a free formatter for Python that rewrites whole files in place, applies a consistent style with an 88-character default line length, and checks that formatting preserves an effectively equivalent syntax tree. It supports editor integrations, GitHub Actions, Jupyter notebooks with an extra, and a localhost HTTP server. Its fixed approach also sets boundaries: Black does not offer indentation-style configuration or a Python library interface, and it requires Python 3.10 or newer to run.

  1. 1

    Accessibility Test Framework for Android

    Free plan AndroidLinuxMac+1

    Automated accessibility checks in Android apps — It checks accessibility on Android views and nodes rather than formatting Python source.

    Free plan Visit site
  2. 2

    Fantomas

    Free plan LinuxMacWeb+1

    Configurable formatting for F# — It formats F# files, follows Microsoft's F# style guide by default, and exposes limited configuration through `.editorconfig`.

    Open source Visit site
  3. 3

    Fourmolu

    Free plan LinuxWebWindows

    Configurable formatting for Haskell — It formats Haskell with configurable layout options and offers an interactive browser demo.

    Open source Visit site
  4. 4

    goimports

    Free plan LinuxMacWeb+1

    Go import cleanup and formatting — It formats Go in gofmt style while adding missing imports and removing unused ones.

    Open source Visit site
  5. 5

    Ormolu

    Free plan LinuxMacWeb+1

    Fixed-style formatting for Haskell — It formats Haskell with one unconfigurable style and aims for minimal diffs.

    Open source Visit site
  6. 6

    Prettier

    Free plan Open source APIExtensionLinux+4

    Formatting across built-in web languages — It formats many languages, including JavaScript, TypeScript, CSS, HTML, JSON, and Markdown, with few configuration options.

    8.8 Open source Visit site
  7. 7

    Ruff

    Free plan LinuxMacSelf-hosted+2

    Python formatting plus linting and automatic fixes — It combines Python formatting with lint rules, automatic fixes, and a built-in language server.

    7.1 Free plan Visit site
  8. 8

    CSharpier

    Free plan APILinuxMac+1
    7.6 Open source Visit site
  9. 9

    autopep8

    Free plan APILinuxMac+1
    7.4 Free plan Visit site
  10. 10

    clang-format

    Free plan ExtensionLinuxMac+1
    7.3 Free plan Visit site
  11. 11

    elm-format

    Free plan LinuxMacWindows
    7.3 Free plan Visit site
  12. 12

    gofmt

    Free plan LinuxMacWindows
    7.2 Free plan Visit site
  13. 13

    PHP CS Fixer

    Free plan LinuxSelf-hosted
    6.9 Free plan Visit site
  14. 14

    RuboCop

    Free plan LinuxSelf-hosted
    6.9 Open source Visit site
  15. 15

    rustfmt

    Free plan LinuxMacWindows
    6.9 Open source Visit site
  16. 16

    Spotless

    Free plan LinuxMacWindows
    6.9 Open source Visit site
  17. 17

    Uncrustify

    Free plan LinuxMacSelf-hosted+1
    6.9 Free plan Visit site
  18. 18

    OCamlFormat

    Free plan Linux
    6.8 Free plan Visit site
  19. 19

    swift-format

    Free plan iPhoneLinuxMac
    6.8 Open source Visit site
  20. 20

    Dart formatter

    Free plan LinuxMacWindows
    6.3 Free plan Visit site
  21. 21

    EditorConfig

    by EditorConfig
    Free plan
  22. 22

    LuaFormatter

    by Koihik
    Free plan
  23. 23

    StyLua

    by JohnnyMorganz
    Free plan
  24. 24

    Deno

    Paid
  25. 25
    4.1 Open source Visit site
  26. 26

    YAPF

    Paid LinuxMacWindows
    4.1 Open source Visit site

The alternatives below are not all replacements for Python formatting. Some check Android accessibility, while the others format F#, Haskell, Go, or multiple languages. Language fit should come first; after that, compare how much control you need over formatting, whether import cleanup or lint fixes matter, and which editor, browser, or CI workflows are available. If your project is Python, Ruff is the closest alternative here; for other languages, a switch means choosing a tool built for that codebase rather than Black’s language.

← Back to Black The whole code formatters list