PHP Formatter

Beautify your PHP with this PHP formatter tool. Paste your PHP in the left box below and the formatted PHP will appear in the box on the right.

Input (PHP) - Paste your PHP here

Output (PHP) - The formatted PHP

Converter Options
PHP indent spacing
Number of spaces to use for indenting the PHP output
Tab indent
Use tabs instead of spaces to indent PHP
Braces on next line
Move curly braces to the next line
PHP version
PHP version of the input code

How to use the PHP Formatter Tool

  1. Paste your PHP input into the left input box and it will automatically be formatted.
  2. Proper newlines, spacing, and indentation will be added to the PHP.
  3. The formatted PHP will appear automatically in the output box on the right.
  4. If there are any errors in the PHP and the tool isn't able to do the formatting, the error message will appear in the output box letting you know where the error was found in the PHP.
  5. Use the control box to select options that will affect the conversion.
  6. Your PHP data is secure. ConvertSimple's PHP formatter does not send your PHP data to our servers for formatting, the process is done completely in your web browser. That's what makes ConvertSimple's tools safe and fast.

PHP Format

Name PHP
Full form name Hypertext Preprocessor / Personal Home Page
File extension .php
Type of format Programming Language
MIME type application/x-httpd-php

Related Tools