Alternatives to Prettier

An opinionated code formatter for JavaScript, TypeScript, CSS, HTML, Markdown and other languages. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as Prettier.

  • Biome

    A fast formatter and linter for JavaScript, TypeScript, JSON, CSS, HTML and GraphQL in one tool.

    Biome combines a formatter with a linter of over 500 rules in one fast tool, stays close to Prettier output, but some formatting differs and language coverage is narrower.

Also worth comparing

These listings name Prettier as their own alternative, so the relationship runs both ways.

  • yamlfmt

    Format YAML files consistently from the command line.

    Prettier is an opinionated MIT-licensed formatter covering many languages beyond YAML, including JavaScript, CSS and Markdown, with few configuration options and wide editor integration.

Similar software

Related functionality, not a direct replacement.