P R E T T I E R

Your Code, Automatically Beautiful!

Try It Online Install Prettier

New! Hot!

Limited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project.

What is Prettier?

Computer

An opinionated code formatter

Supports many languages

Integrates with most editors

Has few options »

Divider

Why?

  • Your code is formatted on save
  • No need to discuss style in code review
  • Saves you time and energy
  • And more »
Funky
Divider

Works with the Tools You Use

Languages Editors
JavaScript
JSX
Flow
TypeScript
JSON
HTML
Vue
Angular
Ember / Handlebars
CSS
Less
SCSS
styled-componentsđź’…
styled-jsx
GraphQL
GraphQL Schemas
Markdown
CommonMark
GitHub-Flavored Markdown
MDX v1
YAML
Emacs
Apheleia
Espresso
Nova
Sublime Text
Vim
Visual Studio
VS Code
WebStorm
Got more? Send a PR!

Community Plugins:

Apex, Elm (via elm-format), Java, PHP, Ruby, Rust, TOML, XML, And more...

Computer
Divider

Used By People You Rely On

See others

Progress

Established in the Ecosystem

Regularly used by:

  • More than 83% of respondents to State of JS 2021.
  • More than 70% of respondents to State of JS 2020.
  • More than 9.8 million dependent repositories on GitHub
  • More than 19.8k dependent packages on npm
Mc Hammer
Divider

Browser Support

This site looks best with Netscape Navigator!

Netscape Navigator Internet Explorer

Best viewed in Netscape Navigator 4.0!

Divider

Connect with Us!

Got questions? Comments? Wanna say hi?

Email Me

Sign my Guestbook!

Mail Kitten
Rainbow Divider
Under Construction New! Generate your own 90s page here! Under Construction