Free JSON to PHP Array Converter

Easily covert your JSON data into PHP array with single and double quotes and indetent option.

Quotes
Indent

JSON Input

Must be valid JSON

Tip: JSON requires double quotes for keys/strings.

PHP Output

Output format: return …;[] + single quotes

Why Choose Our JSON to PHP Array Converter?

Instant JSON to PHP Conversion

This tool will instantly convert your JSON data into a PHP array format in well-structured format.

Supports Nested & Complex JSON

Easily converts deeply nested objects, arrays, booleans, numbers, and null values without data loss.

Multiple Output Customization Options

Choose short or long PHP array syntax, single or double quotes, custom indentation, and optional PHP tags.

Error Detection for Invalid JSON

Automatically detects invalid JSON and displays clear error messages to help you fix issues instantly.

One-Click Copy PHP Output

Copy the generated PHP array with a single click and paste it directly into your Laravel or PHP project.

Secure, Private & Free

All conversions happen in your browser. No data is uploaded or stored. Completely free with no signup required.