Prettier
Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed
About
Prettier is ranked #3 of 34 in code formatting tools on Inferse. It runs on API, Browser extension, Linux, macOS, Web, Windows. There is a free plan.
Compared on code formatting tools
- Supported languages
- JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown, GFM, MDX v1, YAML, LWC, MJMLprettier.io
- Supported platforms
- Browser and JavaScript APIprettier.io
- Editor integration
- Yesprettier.io
- Ignore files
- Yesprettier.io
- Library API
- Yesprettier.io
- License model
- open_sourceprettier.io
Facts
- What it does
- Prettier is an opinionated code formatter that parses code and prints it in a consistent style, taking line length into account.prettier.io · 30 Sept 2026
- Languages
- Built-in language support includes JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, JSON, GraphQL, Markdown, YAML, LWC, and MJML.prettier.io · 30 Sept 2026
- Formatting workflow
- Prettier can format files with its CLI using --write or check formatting with --check in CI.prettier.io · 30 Sept 2026
- Editor integrations
- The documentation lists integrations for VS Code, Emacs, Vim, Helix, Sublime Text, JetBrains IDEs, Visual Studio, and Espresso.prettier.io · 30 Sept 2026
- Editor behavior
- Prettier can be run from an editor shortcut or automatically when saving a file.prettier.io · 30 Sept 2026
- Configuration
- Prettier provides configuration options, but describes itself as opinionated and having few options.prettier.io · 30 Sept 2026
- Plugins
- Plugins can add languages or formatting rules; languages beyond the built-in web-focused languages require installing a plugin.prettier.io · 30 Sept 2026
- Linters
- For ESLint integration, the install guide recommends eslint-config-prettier to disable rules that are unnecessary or might conflict with Prettier.prettier.io · 30 Sept 2026
- Git hooks
- The documentation describes using Husky and lint-staged to run Prettier before each commit.prettier.io · 30 Sept 2026
- Version consistency
- The install guide recommends installing an exact local version in each project because even patch releases can format code differently.prettier.io · 30 Sept 2026
- Enterprise support
- Commercial support and maintenance for Prettier are available as part of the Tidelift Subscription.prettier.io · 30 Sept 2026
- Security and licensing
- The enterprise page says the Tidelift Subscription includes security updates, license verification, and intellectual property indemnification.prettier.io · 30 Sept 2026
Best Prettier alternatives
See all 12
7.3 autopep8 See plans price on the maker's page
7.2 pgFormatter Free free plan, no paid price published Free plan
6.0 Black Free free plan, no paid price published Free plan
6.0 clang-format See plans price on the maker's page
6.0 rustfmt Free free plan, no paid price published Free plan
5.9 Accessibility Test Framework for Android Free free plan, no paid price published Free plan Where it ranks on Inferse
Sources
- prettier.io/docs/· checked 30 Sept 2026
- prettier.io/docs/install· checked 30 Sept 2026
- prettier.io/docs/editors· checked 30 Sept 2026
- prettier.io· checked 30 Sept 2026
- prettier.io/docs/plugins· checked 30 Sept 2026
- prettier.io/docs/for-enterprise· checked 30 Sept 2026
