$php formatter
Re-indent PHP based on ( ) nesting and statement terminators. Strings and HTML chunks are preserved. For full PSR-12 conformance, run php-cs-fixer after.
Frequently asked questions
What does PHP Formatter do?
Pretty-print PHP with PSR-12 indentation. The whole thing runs in your browser tab, so it is ready the moment the page finishes loading.
Is PHP Formatter free to use?
Yes. PHP Formatter is completely free on ToolMunch — no trial, no premium tier holding back the main feature, and no daily or hourly cap on how many times you can use it.
Do I need to create an account or sign up?
No. There is no account, no email address, and no login. Open PHP Formatter, do the job, and take the result — nothing is gated behind a signup form.
Is the code I paste in sent to a server?
No. PHP Formatter runs entirely inside your browser tab, so the code you paste stays on your own device. Nothing is uploaded, which means there is no copy of it on a server to worry about.
Does PHP Formatter work on Mac, Windows, and phones?
Yes. PHP Formatter runs in any modern web browser on Windows, macOS, Linux, Chromebook, Android, and iOS. There is nothing to download or install.
Can I use it as many times as I want?
Yes. There is no queue, no per-hour quota, and no counter that runs out — run PHP Formatter as often as the work needs.