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

Click to browse or drag and drop

Accepted: .php, .txt • Max: 10 MB

Your converted JSON will appear here

Converted JSON will appear here...