Alejandra
An opinionated Nix code formatter with a focus on consistency and readability.
yes.
A catalog of code formatting tools across every language and ecosystem.
An opinionated Nix code formatter with a focus on consistency and readability.
Automatically formats Python code to conform to PEP 8 style guidelines. Uses pycodestyle to determine what needs to be fixed.
A fast formatter and linter for JavaScript, TypeScript, JSX, JSON, and CSS. Designed as a Prettier-compatible drop-in replacement.
The uncompromising Python code formatter. Deterministic output with minimal configuration.
A build, lint, and format tool for Protocol Buffers. The modern standard for managing Protobuf schemas, with dialect-aware formatting.
A tool to format C, C++, Java, JavaScript, and other languages based on configurable style rules. Part of the LLVM project.
An opinionated C# code formatter inspired by Prettier. Minimal configuration, consistent output.
The official Dart code formatter included in the Dart SDK. Applies a single canonical style.
Official .NET code formatter from Microsoft. Ships as part of the .NET SDK since .NET 6. Supports C#, Visual Basic, and F#.
A pluggable and configurable code formatting platform written in Rust. Extremely fast with support for many languages via plugins.
The standard formatter for Elm source code. Enforces a single canonical style with zero configuration.
A configurable Haskell source code formatter, forked from Ormolu. Provides more formatting options while maintaining consistency.
Built-in formatter for Gleam, a friendly language for building type-safe systems. Ships with the Gleam CLI.
The standard Go code formatter. Ships with the Go toolchain and enforces a single canonical style.
A stricter version of gofmt that enforces additional formatting rules. Fully compatible with gofmt output.
Extends gofmt to also manage Go import statements — adding missing imports and removing unused ones automatically.
A Go code formatter that shortens long lines, in addition to all the formatting fixes done by gofmt.
Reformats Java source code to comply with Google Java Style. Opinionated with zero configuration.
Sorts Python imports alphabetically and separates them into sections automatically. Compatible with Black and other formatters.
A Kotlin code formatter by Meta that reformats source code to a uniform style. Based on google-java-format.
The built-in code formatter for Elixir, shipped with the language. Enforces a consistent style with minimal configuration.
Auto-formatter for OCaml code with configurable profiles ranging from conventional to compact styles.
A formatter for Haskell source code that uses a single style with no configuration knobs.
Automatically fixes PHP coding standard violations. Supports PSR-1, PSR-2, PSR-12, and many configurable rules.
An opinionated code formatter that supports many languages and integrates with most editors.
Built-in formatter for the Roc programming language. Ships with the Roc CLI.
A Ruby static code analyzer and formatter based on the community Ruby style guide. Auto-corrects many issues and is highly configurable.
An extremely fast Python linter and formatter written in Rust. Drop-in replacement for Black, isort, and many flake8 plugins.
The official Rust code formatter. Formats Rust code according to style guidelines, shipped with the Rust toolchain.
Code formatter for Scala with highly configurable formatting rules and IDE integration.
A shell script formatter supporting POSIX Shell, Bash, and mksh. Fast and configurable.
A dialect-flexible SQL linter and formatter. Supports many SQL dialects including ANSI, BigQuery, Snowflake, PostgreSQL, MySQL, and more.
An opinionated Lua code formatter inspired by Prettier. Supports Lua 5.1-5.4 and Luau.
The official Swift code formatter from Apple. Formats Swift source code according to configurable rules.
A command-line tool and Xcode Extension for reformatting Swift code. A community-maintained alternative to Apple's swift-format with extensive rule configuration.
A TOML toolkit with a built-in formatter, validator, and language server. Handles TOML files with configurable style rules.
Built-in formatter for HashiCorp Configuration Language (HCL), shipped with the Terraform CLI. Rewrites .tf and .tfvars files to canonical style.
Built-in formatter for OpenTofu, the open-source fork of Terraform. Rewrites .tf and .tfvars files to canonical HCL style.
Built-in formatter for Typst, a modern markup-based typesetting language. Ships with the Typst CLI.
The built-in formatter for Zig, shipped with the compiler. Enforces the official Zig style guide.
An automated Erlang code formatter by WhatsApp. Focuses on preserving intent while enforcing consistent style.
A Nix code formatter for nixpkgs. An alternative to Alejandra, opinionated about whitespace and structure.
A Python formatter from Google that reformats code to the best formatting that conforms to the style guide, even if the original code didn't violate it.
Official Prettier plugin for formatting PHP code.
Official Prettier plugin for formatting Pug (Jade) templates.
Official Prettier plugin for formatting XML documents.
Prettier plugin for formatting Liquid templates. Maintained by Shopify.
Prettier plugin for formatting Salesforce Apex code.
Prettier plugin for formatting Astro components. Maintained by the Astro team.
Prettier plugin for formatting Java source code. Maintained by JHipster.
Prettier plugin for shell scripts (bash/sh/zsh), Dockerfiles, .properties, .gitignore, and more.
Prettier plugin for formatting Solidity smart contracts.
Prettier plugin for SQL using a concrete syntax tree for precise formatting. Supports multiple SQL dialects.
Prettier plugin for formatting Svelte components. Maintained by the Svelte team.
Prettier plugin that automatically sorts Tailwind CSS classes. Maintained by Tailwind Labs.
Prettier plugin for formatting TOML files.
Official Prettier plugin for formatting Ruby code. Runs a Ruby server for parsing.
Prettier plugin for formatting Laravel Blade templates.
Prettier plugin for formatting ERB (Ruby on Rails) templates.
Prettier plugin for formatting Gherkin (Cucumber BDD) feature files.
Prettier plugin for formatting GLSL shader code (WebGL/OpenGL).
Prettier plugin for formatting Go template files, commonly used with Hugo.
Prettier plugin for formatting Jinja2 templates.
Prettier plugin for formatting Marko templates. Maintained by the Marko team.
Prettier plugin for formatting Motoko (Internet Computer) smart contract code. Maintained by DFINITY.
Prettier plugin for formatting Nginx configuration files.