Cool PHP Beautifier

By | November 10, 2021

Free online tool to format a Minified or Ugly PHP code, making it readable and pretty, with the proper indentation.

Ugly PHP

Output




HTML <style>, <script> formatting:

Why PHP Beautifier Online tool?

PHP Beautifier is a great free online tool that will let you beautify your code in no time. PHP Beautifier lets you paste your code and format it in a beautiful way. The best part is that you don’t have to download anything. Just paste your code in the field they provide and click the button.

Sample input

$t = date("H");if($t < "20"){echo "Have a good day!";}

Output

$t = date("H");
if($t < "20") {
    echo "Have a good day!";
}