# Black

> The uncompromising Python code formatter: one deterministic style, no configuration debates

Source: https://talira.ai/catalog/black-mgcvtq53
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Python Software Foundation](https://talira.ai/orgs/python-software-foundation.md)
- Funding: non-profit[^2]
- Extends: [VS Code](https://talira.ai/ecosystems/vscode.md#ext-f1nqkw5m)

A Python code formatter that reformats whole files to one consistent style, so formatting stops being a matter of taste or a subject of code review and diffs stay small. It checks that the reformatted code produces an equivalent AST unless run with --fast. Besides the command line, it runs as a server (blackd), in a Docker image, in editors, in GitHub Actions and pre-commit hooks, and on Jupyter Notebooks. Black is stable, so formatting changes between releases are limited to bug fixes and new Python syntax. It's a Python Software Foundation project, MIT licensed.

## Links

- Website: https://black.readthedocs.io/en/stable/
- GitHub: https://github.com/psf/black
- Docs: https://black.readthedocs.io/en/stable/

## Problems it solves

- stop arguing about Python code style in code review
- format all of my Python code the same way automatically
- keep formatting diffs small across a team's Python project

## Features

- deterministic formatting of whole Python files
- checks the reformatted code is equivalent (AST check)
- blackd formatting server and Docker image
- editor, GitHub Actions and version control integrations
- formats Jupyter Notebooks

## Trust

Overall: 0.80 out of 1.
Signals: maintenance 1.00, adoption 0.93, momentum 0.79, community 1.00, backing 0.55, extensibility 0.00.

- last commit 10 days ago
- 211 commits in the last 90 days
- latest release 26.10.1 51 days ago
- 42.2k GitHub stars
- 633 contributors
- backed by Python Software Foundation
- funding: non-profit

## Alternatives

- [YAPF](https://talira.ai/catalog/yapf-d00487g3.md): Configurable Python code formatter based on clang-format's algorithm
- [Ruff](https://talira.ai/catalog/ruff-t1e35scd.md): An extremely fast Python linter and code formatter, written in Rust
- [autopep8](https://talira.ai/catalog/autopep8-868ephvm.md): Automatically reformats Python code to follow the PEP 8 style guide

## Sources

[^1]: https://black.readthedocs.io/en/stable/ (checked 24 Nov 2026)
[^2]: https://www.python.org/psf-landing/ (checked 23 Nov 2026)
