Skip to main content

PHP Formatter

v1.0.1

Format PHP code with configurable indentation and Allman or K&R brace style — runs entirely in your browser.

Php Formatter that formats, validates, or transforms source code files.

How to use
  • Paste your code into the editor panel.
  • The formatted or analysed output appears automatically.
  • Copy the result using the Copy button.
  • Try a preset from the example picker to see sample input.
Indent size
Brace style
Client-side formatter. Results may differ from php-cs-fixer.