Prettier Config Generator

Free online Prettier configuration file generator. Create perfect .prettierrc files with customizable formatting rules for any JavaScript, TypeScript, React, Vue, or CSS project.

Quick Presets

Formatting Rules

The line length where Prettier will try to wrap
Number of spaces per indentation level

Preview

 

About Prettier Config Generator

Prettier is an opinionated code formatter that supports many languages and integrates with most editors. This tool generates customized .prettierrc configuration files for your project, with quick presets for popular frameworks and fine-grained control over every formatting rule. All processing happens in your browser — no data is sent to any server.

Features

  • Quick presets for Standard, Strict, Relaxed, React, Vue, and Node.js projects
  • Fine-grained control over all Prettier formatting options
  • Export as JSON, YAML, or TOML format
  • Live preview with syntax highlighting
  • One-click copy or download as configuration file
  • Pure client-side — no server, no data storage

Frequently Asked Questions

What is Prettier?

Prettier is an opinionated code formatter that enforces a consistent style by parsing your code and re-printing it with its own rules. It supports JavaScript, TypeScript, CSS, HTML, JSON, GraphQL, Markdown, and more.

Where do I put the .prettierrc file?

Place the .prettierrc file in your project root directory. Prettier will automatically find and use it when formatting files in that project. You can also place it in parent directories or use the --config option.

Can I use .prettierrc.js or package.json instead?

Yes! Prettier supports multiple config file formats: .prettierrc (JSON/YAML), .prettierrc.json, .prettierrc.yaml, .prettierrc.yml, .prettierrc.toml, .prettierrc.js, prettier.config.js, and the prettier key in package.json.

Does Prettier work with ESLint?

Yes, Prettier and ESLint work great together. Use eslint-config-prettier to disable ESLint rules that conflict with Prettier, and eslint-plugin-prettier to run Prettier as an ESLint rule.

Is my data private?

Yes, all processing happens locally in your browser. No data is sent to any server or stored anywhere.

Common Use Cases

  • Setting up a new JavaScript/TypeScript project with consistent formatting
  • Creating a shared config for a team to ensure code style consistency
  • Migrating an existing project to Prettier with custom rules
  • Configuring Prettier for a React, Vue, or Angular project