Prettier

Opinionated code formatter for JavaScript, TypeScript, CSS, Markdown, and more

Visit prettier.io FreeOpen source

Prettier is an opinionated code formatter that parses source code and reprints it with a consistent style. It supports JavaScript, TypeScript, JSX, CSS, SCSS, HTML, JSON, YAML, Markdown, and GraphQL, and integrates with most editors.

Key features

  • Formats many languages with one tool
  • Few configuration options by design
  • Editor integrations and pre-commit hooks
  • Plugin API for additional languages

Try it on DevTools Daily

Similar tools

  • Biome

    Fast formatter and linter for JavaScript, TypeScript, JSON, and CSS

    FreeOpen sourceCLI, VS Code, JetBrains
  • ESLint

    Pluggable linter that finds and fixes problems in JavaScript and TypeScript

    FreeOpen sourceCLI, VS Code, JetBrains
  • Oxlint

    Fast JavaScript and TypeScript linter written in Rust

    by VoidZeroFreeOpen sourceCLI, VS Code
  • Black

    The uncompromising Python code formatter

    FreeOpen sourceCLI, VS Code, JetBrains
  • Ruff

    Extremely fast Python linter and code formatter, written in Rust

    by AstralFreeOpen sourceCLI, VS Code, JetBrains
  • ShellCheck

    Static analysis tool that finds bugs in bash and sh shell scripts

    FreeOpen sourceWeb, CLI, macOS +2

Built a tool like Prettier? Submit it for review