Prettier Config Generator

Generate a Prettier config for quotes, semicolons, indentation, print width and trailing commas. Copy or download the configuration.

Browser-based processingResults depend on your deviceFree, no sign-up

Prettier Config Generator

Pick your style choices and get a .prettierrc — plus a starter .prettierignore.

.prettierrc
{
  "semi": false,
  "singleQuote": false,
  "printWidth": 80,
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "all"
}

// Suggested .prettierignore (save separately):
// dist/
// build/
// coverage/
// package-lock.json

Create a shared formatting config

For a two-space project with single quotes, select Single quotes and 2 spaces. Copy just the JSON object into .prettierrc at your project root, review the options with your team and test the output using the project’s installed Prettier version.

Keep formatting and linting separate

Use .prettierignore to keep generated files out of formatting and review the starter patterns before adopting them. Use the JSON formatter if you edit the generated config by hand and want to check its syntax.

Frequently Asked Questions

  • Does this tool format my source code?
    It generates settings for Prettier. Run Prettier in your project to apply them.
  • Is print width a hard character limit?
    Print width is a formatting target. Prettier can keep some lines longer when it cannot split them usefully.
200 free tools
Browser-based tools
Local file processing
Free — no sign-up