are we formatting yet?

yes.

A catalog of code formatting tools across every language and ecosystem.

48 formatters
54 languages
37 active

Alejandra

An opinionated Nix code formatter with a focus on consistency and readability.

Nix
Unlicense Built with Rust

Biome

A fast formatter and linter for JavaScript, TypeScript, JSX, JSON, and CSS. Designed as a Prettier-compatible drop-in replacement.

JavaScriptTypeScriptJSXTSXJSONCSSGraphQL
MIT Built with Rust

Black

The uncompromising Python code formatter. Deterministic output with minimal configuration.

Python
MIT Built with Python

clang-format

A tool to format C, C++, Java, JavaScript, and other languages based on configurable style rules. Part of the LLVM project.

CC++JavaJavaScriptObjective-CProtobufC#
Apache-2.0 Built with C++

CSharpier

An opinionated C# code formatter inspired by Prettier. Minimal configuration, consistent output.

C#
MIT Built with C#

dart format

The official Dart code formatter included in the Dart SDK. Applies a single canonical style.

Dart
BSD-3-Clause Built with Dart

dprint

A pluggable and configurable code formatting platform written in Rust. Extremely fast with support for many languages via plugins.

JavaScriptTypeScriptJSONMarkdownTOMLCSSHTMLRustDockerfile
MIT Built with Rust

elm-format

The standard formatter for Elm source code. Enforces a single canonical style with zero configuration.

Elm
BSD-3-Clause Built with Haskell

Fourmolu

A configurable Haskell source code formatter, forked from Ormolu. Provides more formatting options while maintaining consistency.

Haskell
BSD-3-Clause Built with Haskell

gofmt

The standard Go code formatter. Ships with the Go toolchain and enforces a single canonical style.

Go
BSD-3-Clause Built with Go

google-java-format

Reformats Java source code to comply with Google Java Style. Opinionated with zero configuration.

Java
Apache-2.0 Built with Java

ktfmt

A Kotlin code formatter by Meta that reformats source code to a uniform style. Based on google-java-format.

Kotlin
Apache-2.0 Built with Kotlin

mix format

The built-in code formatter for Elixir, shipped with the language. Enforces a consistent style with minimal configuration.

Elixir
Apache-2.0 Built with Elixir

ocamlformat

Auto-formatter for OCaml code with configurable profiles ranging from conventional to compact styles.

OCaml
MIT Built with OCaml

Ormolu

A formatter for Haskell source code that uses a single style with no configuration knobs.

Haskell
BSD-3-Clause Built with Haskell

Prettier

An opinionated code formatter that supports many languages and integrates with most editors.

JavaScriptTypeScriptCSSHTMLJSONMarkdownYAMLGraphQLJSXTSX
MIT Built with JavaScript

Ruff

An extremely fast Python linter and formatter written in Rust. Drop-in replacement for Black, isort, and many flake8 plugins.

Python
MIT Built with Rust

rustfmt

The official Rust code formatter. Formats Rust code according to style guidelines, shipped with the Rust toolchain.

Rust
Apache-2.0 Built with Rust

scalafmt

Code formatter for Scala with highly configurable formatting rules and IDE integration.

Scala
Apache-2.0 Built with Scala

shfmt

A shell script formatter supporting POSIX Shell, Bash, and mksh. Fast and configurable.

ShellBash
BSD-3-Clause Built with Go

StyLua

An opinionated Lua code formatter inspired by Prettier. Supports Lua 5.1-5.4 and Luau.

Lua
MPL-2.0 Built with Rust

swift-format

The official Swift code formatter from Apple. Formats Swift source code according to configurable rules.

Swift
Apache-2.0 Built with Swift

Taplo

A TOML toolkit with a built-in formatter, validator, and language server. Handles TOML files with configurable style rules.

TOML
MIT Built with Rust

zig fmt

The built-in formatter for Zig, shipped with the compiler. Enforces the official Zig style guide.

Zig
MIT Built with Zig

erlfmt

An automated Erlang code formatter by WhatsApp. Focuses on preserving intent while enforcing consistent style.

Erlang
Apache-2.0 Built with Erlang

@prettier/plugin-php

Prettier plugin

Official Prettier plugin for formatting PHP code.

PHP
MIT @prettier/plugin-php

@prettier/plugin-pug

Prettier plugin

Official Prettier plugin for formatting Pug (Jade) templates.

Pug
MIT @prettier/plugin-pug

@prettier/plugin-xml

Prettier plugin

Official Prettier plugin for formatting XML documents.

XML
MIT @prettier/plugin-xml

@shopify/prettier-plugin-liquid

Prettier plugin

Prettier plugin for formatting Liquid templates. Maintained by Shopify.

Liquid
MIT @shopify/prettier-plugin-liquid

prettier-plugin-apex

Prettier plugin

Prettier plugin for formatting Salesforce Apex code.

Apex
MIT prettier-plugin-apex

prettier-plugin-astro

Prettier plugin

Prettier plugin for formatting Astro components. Maintained by the Astro team.

Astro
MIT prettier-plugin-astro

prettier-plugin-java

Prettier plugin

Prettier plugin for formatting Java source code. Maintained by JHipster.

Java
Apache-2.0 prettier-plugin-java

prettier-plugin-sh

Prettier plugin

Prettier plugin for shell scripts (bash/sh/zsh), Dockerfiles, .properties, .gitignore, and more.

ShellBashDockerfile
MIT prettier-plugin-sh

prettier-plugin-solidity

Prettier plugin

Prettier plugin for formatting Solidity smart contracts.

Solidity
MIT prettier-plugin-solidity

prettier-plugin-sql-cst

Prettier plugin

Prettier plugin for SQL using a concrete syntax tree for precise formatting. Supports multiple SQL dialects.

SQL
GPL-2.0 prettier-plugin-sql-cst

prettier-plugin-svelte

Prettier plugin

Prettier plugin for formatting Svelte components. Maintained by the Svelte team.

Svelte
MIT prettier-plugin-svelte

prettier-plugin-tailwindcss

Prettier plugin

Prettier plugin that automatically sorts Tailwind CSS classes. Maintained by Tailwind Labs.

CSS
MIT prettier-plugin-tailwindcss

prettier-plugin-toml

Prettier plugin

Prettier plugin for formatting TOML files.

TOML
MIT prettier-plugin-toml

@prettier/plugin-ruby

Prettier plugin

Official Prettier plugin for formatting Ruby code. Runs a Ruby server for parsing.

Ruby
MIT @prettier/plugin-ruby

prettier-plugin-blade

Prettier plugin

Prettier plugin for formatting Laravel Blade templates.

Blade
MIT prettier-plugin-blade

prettier-plugin-erb

Prettier plugin

Prettier plugin for formatting ERB (Ruby on Rails) templates.

ERB
MIT prettier-plugin-erb

prettier-plugin-gherkin

Prettier plugin

Prettier plugin for formatting Gherkin (Cucumber BDD) feature files.

Gherkin
MIT prettier-plugin-gherkin

prettier-plugin-glsl

Prettier plugin

Prettier plugin for formatting GLSL shader code (WebGL/OpenGL).

GLSL
MIT prettier-plugin-glsl

prettier-plugin-go-template

Prettier plugin

Prettier plugin for formatting Go template files, commonly used with Hugo.

Go Template
MIT prettier-plugin-go-template

prettier-plugin-jinja-template

Prettier plugin

Prettier plugin for formatting Jinja2 templates.

Jinja2
MIT prettier-plugin-jinja-template

prettier-plugin-marko

Prettier plugin

Prettier plugin for formatting Marko templates. Maintained by the Marko team.

Marko
MIT prettier-plugin-marko

prettier-plugin-motoko

Prettier plugin

Prettier plugin for formatting Motoko (Internet Computer) smart contract code. Maintained by DFINITY.

Motoko
Apache-2.0 prettier-plugin-motoko

prettier-plugin-nginx

Prettier plugin

Prettier plugin for formatting Nginx configuration files.

Nginx
MIT prettier-plugin-nginx