Prettier

Prettier

Opinionated code formatter that parses source and re-prints it under a fixed style, wrapping code at the configured line length, supporting JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML, runnable from the editor on save, a pre-commit hook or CI.

Prettier at prettier.io is a free MIT opinionated code formatter, parse and re-print under fixed style with line length wrapping, JavaScript TypeScript Flow JSX JSON CSS SCSS Less HTML Vue Angular GraphQL Markdown YAML, editor on-save, pre-commit hook and CI, limited config for deterministic output, commonly paired with Stylelint or ESLint, 52.4k GitHub stars, 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 Prettier free?

Prettier: Prettier is free open-source software released under the MIT License, installable as an npm package and runnable in the editor on-save, in a pre-commit hook or in CI environments so a codebase keeps a consistent style without style comments in review. It parses JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML, then re-prints code with its own rules that take the maximum line length into account and wrap code when necessary; configuration options are deliberately limited so formatting stays deterministic across contributors. The repository holds 52.4k stars, and Prettier is commonly paired with a linter such as Stylelint or ESLint, since linters and pretty printers are complementary. 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 Prettier free?

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

How much does Prettier cost?

Prettier is free open-source software released under the MIT License, installable as an npm package and runnable in the editor on-save, in a pre-commit hook or in CI environments so a codebase keeps a consistent style without style comments in review. It parses JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML, then re-prints code with its own rules that take the maximum line length into account and wrap code when necessary; configuration options are deliberately limited so formatting stays deterministic across contributors. The repository holds 52.4k stars, and Prettier is commonly paired with a linter such as Stylelint or ESLint, since linters and pretty printers are complementary. 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 Prettier's current pricing?

On Prettier'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 Prettier?

Instead of debating indentation, quotes and line breaks in review, the formatter normalizes every file to the same output; keep lint rules for code-quality checks and let Prettier own whitespace and syntax style, with editor and pre-commit integrations enforcing it automatically.

How does pricing work?

The package installs free under MIT with no purchase fee or seat count; run it in your own editor, repo or CI, and any commercial support or plugin maintenance arrangement would be outside the open-source project.

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

Prettier 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
PrettierOpen sourcePrettier is free open-source software released under the MIT License, installable as an npm package and runnable in the editor on-save, in a pre-commit hook or in CI environments so a codebase keeps a consistent style without style comments in review. It parses JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML, then re-prints code with its own rules that take the maximum line length into account and wrap code when necessary; configuration options are deliberately limited so formatting stays deterministic across contributors. The repository holds 52.4k stars, and Prettier is commonly paired with a linter such as Stylelint or ESLint, since linters and pretty printers are complementary. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
BiomeOpen sourceBiome is free open-source software, dual-licensed under MIT or Apache 2.0 at your choice, moderated under the Contributor Covenant Code of Conduct. It is a performant toolchain for web projects built around a shared Rust parser that offers a fast formatter for JavaScript, TypeScript, JSX, JSON, CSS, GraphQL, HTML, Markdown, YAML and SCSS, reported at 97% compatibility with Prettier, and a performant linter for the same languages with more than 750 rules drawn from ESLint, typescript-eslint and other sources, producing detailed contextualized diagnostics. Install with npm install --save-dev --save-exact @biomejs/biome; commands cover format --write, lint --write, check --write and ci. Biome has sane defaults and does not require configuration, does not require Node.js to function, includes first-class LSP support, and can format and lint malformed code as it is written; an online playground compiled to WebAssembly is available without installing anything (data as of Nov 22, 2026).Nov 22, 2026
StylelintOpen sourceStylelint is free open-source software released under the MIT License, maintained by volunteers. It provides over 150 built-in rules for modern CSS syntax and features, supports plugins so teams can write custom rules, automatically fixes problems where possible, supports shareable configs that can be created or extended, and can be customized to exact project needs; its 10,000 unit tests cover the rule set, and it is used by companies including Google and GitHub. It can extract embedded styles from HTML, Markdown and CSS-in-JS template literals, and parse CSS-like languages such as SCSS, Sass, Less and SugarSS. Output covers invalid or malformed constructs, duplicate selectors, unknown or misspelled properties, disallowed units, custom-property naming patterns, ID-selector limits and modern color-function notation; it exposes a CLI, Node.js API and PostCSS plugin. The project recommends running a pretty printer such as Prettier alongside it, since linters and pretty printers are complementary. 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

Prettier'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: Prettier is free open-source software released under the MIT License, installable as an npm package and runnable in the editor on-save, in a pre-commit hook or in CI environments so a codebase keeps a consistent style without style comments in review. It parses JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML, then re-prints code with its own rules that take the maximum line length into account and wrap code when necessary; configuration options are deliberately limited so formatting stays deterministic across contributors. The repository holds 52.4k stars, and Prettier is commonly paired with a linter such as Stylelint or ESLint, since linters and pretty printers are complementary. 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 Websiteprettier.io
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates