A free online Prettier configuration generator. Choose your formatting preferences visually and download a ready-to-use .prettierrc, .prettierrc.yml, or prettier.config.js in seconds — no signup required.

Prettier Config Generator is a free, browser-based tool that lets you configure every Prettier formatting option visually and download a production-ready .prettierrc file in seconds. No guessing option names, no reading documentation for the fifth time — adjust the controls, pick your output format, and copy or download. No account, no install.
Prettier is the most widely adopted JavaScript formatter, but getting its configuration right still involves a familiar ritual: open the docs, find the option you need, set it, rebuild, check the output, realise you forgot another option, repeat. For teams setting up a new project, this takes longer than it should.
The .prettierrc format supports JSON, YAML, and JavaScript modules. The option names are consistent but not intuitive (bracketSameLine, arrowParens, proseWrap). New team members copy configs from Stack Overflow and rarely know what half the options do. Senior developers know the options but still have to look up the exact keys.
The result: inconsistent configs, teams that accept defaults without understanding them, and time spent on configuration instead of shipping.
Every Prettier option is presented as a labelled control with a plain-English description. Toggle switches for boolean options (semicolons, single quotes, bracket spacing), range sliders with numeric inputs for print width and tab width, and dropdown selects for enum options (trailing commas, arrow function parens, end of line).
Change a control and the output panel updates instantly — you see the exact config file content as you build it.
Three output formats, switchable with a tab:
.prettierrc) — the most common format; readable and git-friendly.prettierrc.yml) — concise, great for teams that use YAML across their stackprettier.config.js) — best when you need comments, dynamic values, or want to export from a shared configAll three formats are functionally equivalent. Prettier reads them all.
One click copies the config to the clipboard. The download button saves the file with the correct filename for the selected format — .prettierrc, .prettierrc.yml, or prettier.config.js. Drop it at the project root alongside package.json.
A reset button restores every option to Prettier's factory defaults. Useful when exploring the impact of specific options or onboarding a new team member to what defaults actually look like.
useState — a single PrettierConfig typed objectgenerateJSON, generateYAML, generateJS pure functions produce output from config stateBlob + URL.createObjectURL entirely in the browser| Option | Default | Description |
|---|---|---|
| printWidth | 80 | Line length wrap target |
| tabWidth | 2 | Spaces per indentation level |
| useTabs | false | Tabs instead of spaces |
| Option | Default | Description |
|---|---|---|
| semi | true | Semicolons at end of statements |
| singleQuote | false | Single quotes instead of double |
| jsxSingleQuote | false | Single quotes in JSX attributes |
| Option | Default | Description |
|---|---|---|
| trailingComma | "all" | Where to add trailing commas |
| bracketSpacing | true | Spaces in object literals |
| bracketSameLine | false | JSX > on last vs. new line |
| Option | Default | Description |
|---|---|---|
| arrowParens | "always" | Parens around arrow function params |
| endOfLine | "lf" | Line ending character |
| proseWrap | "preserve" | Markdown prose wrapping |
Starting a new TypeScript or JavaScript project. The team agrees on a style guide but nobody wants to look up every option name. Open the generator, configure the team's preferences, download .prettierrc, commit it. Done in under two minutes.
A new hire asks why the project uses single quotes and no semicolons. The generator shows every option with a plain-English description — it's a documentation tool as much as a config tool.
Prettier v3 changed the trailingComma default from "es5" to "all". Use the generator to review all options and understand what changed without reading the full migration guide.
Open source projects need a Prettier config that works across contributors on Windows (CRLF) and Unix (LF). Set endOfLine: "auto", configure the rest, download, and commit.
Introduce Prettier to a junior developer or bootcamp cohort. Use the generator to show how each option affects the output — toggle semicolons on and off, switch between single and double quotes — and have them see the config file update in real time.
Prettier Config Generator removes the friction from project setup and team onboarding:
.prettierrcTry it now: prettier-config-generator.tools.jagodana.com
The client needed a robust developer tools solution that could scale with their growing user base while maintaining a seamless user experience across all devices.
We built a modern application using Prettier and Code Formatter, focusing on performance, accessibility, and a delightful user experience.
Category
Developer Tools
Technologies
Date
June 2026
More work in Developer Tools