Dev workflow and DevOps · Tool

Prettier

A code formatter that rewrites code into one consistent style automatically, so nobody has to argue about spaces, quotes or line breaks.

Everyday tools · Open source · updated

How it works

Prettier ignores how the code was typed: it parses it and prints it back out in its own style, wrapping lines at a set width. It handles JavaScript, TypeScript, JSX, CSS, HTML, JSON, Markdown, YAML and GraphQL, and plugins add more, such as sorting Tailwind classes. It deliberately has very few options (line width, quotes, semicolons, trailing commas), so there is little to configure or debate.

Most teams run it on save in the editor and check it in CI, which keeps code reviews focused on real changes. It does not look for bugs; that is ESLint's job, and eslint-config-prettier switches off ESLint's style rules so the two never fight. Biome includes a largely Prettier-compatible formatter that runs much faster.

Prettier pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

Prettier vs the alternatives

More in Dev workflow and DevOps

Everyday tools

All 21 Dev workflow and DevOps terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.