Generate Your Perfect
Prettier Config
Stop hand-editing .prettierrc files. Configure all Prettier formatting options visually and get a production-ready config file in seconds.
All Options Covered
Configure print width, tabs, quotes, semicolons, trailing commas, JSX, arrow functions, and more.
Multiple Output Formats
Export as JSON (.prettierrc), YAML (.prettierrc.yml), or JavaScript module (prettier.config.js).
100% Client-Side
Everything runs in your browser. No data is ever sent to a server. Instant, private, and secure.
Configuration
Indentation
Wrap lines longer than this many characters
Indent with tabs instead of spaces
Number of spaces per indentation level
Quotes & Semicolons
Add a semicolon at the end of every statement
Use single quotes instead of double quotes
Use single quotes in JSX attributes
Trailing Commas & Brackets
Where to add trailing commas in multi-line code
Print spaces between brackets in object literals: { foo: bar }
Put the > of a JSX element on the last line instead of a new line
Functions & Formatting
Include parentheses around sole arrow function parameters
Line ending characters to use
Wrap markdown prose at the print width
Output
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"endOfLine": "lf",
"proseWrap": "preserve"
}Place the downloaded file at the root of your project alongside package.json
Frequently Asked Questions
Everything you need to know about Prettier Config Generator.