Black

Black

Uncompromising, PEP 8-compliant Python code formatter that reformats whole files in place with deliberately limited style configuration, deterministic smallest-diff output, parallel tests, an AST-equivalence safety check, Jupyter notebook support through an extras install, and standalone PyInstaller executables for running without a local Python install.

Black at black.readthedocs.io is a free MIT uncompromising PEP 8 Python formatter, pip install black with Python 3.11+, black[jupyter] for notebooks, standalone PyInstaller executables, whole-file in-place reformat with limited config, deterministic smallest diff, AST equivalence safety check with --fast to skip, used by pytest tox Django SQLAlchemy Poetry and PyPA apps, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Black free?

Black: Black is free open-source software released under the MIT License, described as the uncompromising Python code formatter: by using it teams cede control over hand-formatting minutiae in return for speed, determinism and freedom from pycodestyle formatting nagging. Install with pip install black; running requires Python 3.11 or higher, and Jupyter Notebooks are formatted with pip install 'black[jupyter]'; standalone PyInstaller-built executables are published on GitHub Releases for running without installing Python. Black reformats entire files in place, PEP 8 compliant with deliberately few configuration options, and does not take previous formatting into account except for documented Pragmatism exceptions. As a safety measure it checks that reformatted code still produces a valid AST effectively equivalent to the original, with --fast available to skip that check for confident runs; pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs, SQLAlchemy, Poetry and PyPA applications are among projects using it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Black free?

The code is free to self-host, but a hosted plan from the vendor may not be. Black publishes its source, so cost depends on where you run it.

How much does Black cost?

Black is free open-source software released under the MIT License, described as the uncompromising Python code formatter: by using it teams cede control over hand-formatting minutiae in return for speed, determinism and freedom from pycodestyle formatting nagging. Install with pip install black; running requires Python 3.11 or higher, and Jupyter Notebooks are formatted with pip install 'black[jupyter]'; standalone PyInstaller-built executables are published on GitHub Releases for running without installing Python. Black reformats entire files in place, PEP 8 compliant with deliberately few configuration options, and does not take previous formatting into account except for documented Pragmatism exceptions. As a safety measure it checks that reformatted code still produces a valid AST effectively equivalent to the original, with --fast available to skip that check for confident runs; pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs, SQLAlchemy, Poetry and PyPA applications are among projects using it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Black's current pricing?

On Black's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Black?

Run black against a file or directory and it rewrites whitespace, quotes and line breaks to one shared style, producing small review diffs; notebooks use the Jupyter extras, and CI can enforce the formatted state so style bikeshedding stays out of review.

How does pricing work?

The formatter installs free under MIT with no seat license; bring your own Python 3.11+ environment or use the standalone binary, and commercial support would be a separate arrangement outside the project.

How does Black compare with other tools in Dev Workflow & Productivity?

Black is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
BlackOpen sourceBlack is free open-source software released under the MIT License, described as the uncompromising Python code formatter: by using it teams cede control over hand-formatting minutiae in return for speed, determinism and freedom from pycodestyle formatting nagging. Install with pip install black; running requires Python 3.11 or higher, and Jupyter Notebooks are formatted with pip install 'black[jupyter]'; standalone PyInstaller-built executables are published on GitHub Releases for running without installing Python. Black reformats entire files in place, PEP 8 compliant with deliberately few configuration options, and does not take previous formatting into account except for documented Pragmatism exceptions. As a safety measure it checks that reformatted code still produces a valid AST effectively equivalent to the original, with --fast available to skip that check for confident runs; pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs, SQLAlchemy, Poetry and PyPA applications are among projects using it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
RuffOpen sourceRuff is free open-source software released under the MIT License, developed by Astral, the creators of uv and ty. It is an extremely fast Python linter and formatter written in Rust, reported at 10-100x faster than existing linters such as Flake8 and formatters such as Black, installable via pip with pyproject.toml support and Python 3.15 compatibility. It ships over 900 built-in rules with native Rust re-implementations of popular Flake8 plugins such as flake8-bugbear, built-in caching to skip unchanged files, automatic error correction such as removing unused imports, drop-in parity with Flake8, isort and Black, monorepo-friendly hierarchical and cascading configuration, and first-party editor integrations for VS Code and others. Ruff can replace Flake8 plus dozens of plugins, Black, isort, pydocstyle, pyupgrade and autoflake behind one common interface; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
PylintOpen sourcePylint is free open-source software, licensed GPL-2.0-or-later with a few exceptions; the icon files doc/logo.png and doc/logo.svg are separately licensed CC BY-SA 4.0. The latest PyPI release is 4.1.3, released Oct 11, 2026, and requires Python 3.10.0 or above. Pylint analyses Python code without actually running it: it checks for errors, enforces a coding standard, looks for code smells, and can make suggestions about how the code could be refactored. The package installs with pip install pylint, with message controls, extensions and plugins configurable through rc files or command-line options; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Black's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: Black is free open-source software released under the MIT License, described as the uncompromising Python code formatter: by using it teams cede control over hand-formatting minutiae in return for speed, determinism and freedom from pycodestyle formatting nagging. Install with pip install black; running requires Python 3.11 or higher, and Jupyter Notebooks are formatted with pip install 'black[jupyter]'; standalone PyInstaller-built executables are published on GitHub Releases for running without installing Python. Black reformats entire files in place, PEP 8 compliant with deliberately few configuration options, and does not take previous formatting into account except for documented Pragmatism exceptions. As a safety measure it checks that reformatted code still produces a valid AST effectively equivalent to the original, with --fast available to skip that check for confident runs; pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs, SQLAlchemy, Poetry and PyPA applications are among projects using it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websiteblack.readthedocs.io
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates