Prettier Config Generator
Choose values for ten common Prettier options and copy the resulting configuration. The generator outputs JSON, YAML or a CommonJS JavaScript file; it does not inspect a project, validate the configuration with Prettier or add plugins and overrides.
How to generate the configuration
-
1
Set the layout
Choose print width, tab width, tabs or spaces, semicolons and quote style.
-
2
Set syntax details
Choose trailing commas, bracket spacing, arrow parentheses, line endings and JSX quotes.
-
3
Choose a file format
Generate .prettierrc.json, .prettierrc.yaml or a CommonJS .prettierrc.js using module.exports.
-
4
Copy and check it
Save the output in your project and run npx prettier --check . with your installed Prettier version.
Options this generator includes
| Option | Available values |
|---|---|
printWidth |
40–200 |
tabWidth |
1–8 |
useTabs, semi, bracketSpacing, jsxSingleQuote |
true or false |
singleQuote |
true or false |
trailingComma |
none, es5 or all |
arrowParens |
always or avoid |
endOfLine |
lf, crlf, cr or auto |
The number controls are clamped to the ranges shown. The other controls only expose the listed values. These are useful everyday settings, not every option supported by Prettier.
Output formats
- JSON produces a JSON object suitable for
.prettierrc.json. - YAML produces key-value lines suitable for
.prettierrc.yaml. - JavaScript wraps the same object in
module.exports = { ... };, suitable for a CommonJS.prettierrc.jssetup.
Prettier supports other configuration filenames and module formats too. This generator creates only the three outputs displayed above. It does not run Prettier, so check the copied file with the version installed in your project.
Data handling
The controls are server fields, so option values are sent to the server while the page updates. In the two-step view, they can also appear in the page URL. A Prettier configuration normally contains no secrets, but do not place sensitive data in these fields or in a shared URL.
Frequently Asked Questions
No. It generates the ten options shown in the form. Add any other supported settings manually after checking the documentation for your installed version.
No. It creates configuration text but does not run Prettier. Save the file and run npx prettier --check . in your project.
No. The output is one flat object. Add overrides or plugin-specific options manually if your project needs them.
That is the CommonJS form generated by this tool. If your project expects an ES module configuration, adapt the export and filename for that setup.
Related Tools
ASCII Table Reference
Full ASCII table from 0 to 127 with decimal, hex, octal, binary, standard names and HTML numeric-reference notation, including NUL, LF and DEL.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
HTML Character Reference
Searchable list of HTML entities, their named and numeric codes, and a one-click copy for special characters and symbols.
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
JSON Formatter
Paste JSON to pretty-print with 2 or 4 spaces, minify it to compact output, or run a quick syntax check before copying the result.
Tool available in other languages
- Gerador de configuração do Prettier [PT]
- Prettier-konfigurationsgenerator [SV]
- Trình tạo cấu hình Prettier [VI]
- Prettier設定ジェネレーター [JA]
- Generador de configuración de Prettier [ES]
- مولّد إعدادات Prettier [AR]
- Prettier-Konfigurationsgenerator [DE]
- Générateur de configuration Prettier [FR]
- Prettier 설정 생성기 [KO]
- Generator Konfigurasi Prettier [ID]
- เครื่องมือสร้างการตั้งค่า Prettier [TH]
- Prettier-configuratiegenerator [NL]
- Generator konfiguracji Prettier [PL]
- Generatore di configurazione Prettier [IT]
- Генератор конфигурации Prettier [RU]
- Prettier Yapılandırma Oluşturucu [TR]
- Prettier 配置生成器 [ZH]