PHP Array to JSON Converter

Convert PHP arrays to JSON format with customizable indentation and formatting options. Supports both indexed and associative arrays.

Paste your PHP array code here

Switch to JSON to PHP Array

Your converted JSON will appear here