PHP Array to JSON Converter
Paste a PHP array definition and get the JSON equivalent with proper type mapping.
Summary
Paste a PHP array definition and get the JSON equivalent with proper type mapping.
How it works
- Paste the PHP array code
- Click Convert
- Choose pretty or minified JSON
- Copy the JSON output
Use cases
- Exporting PHP config arrays to JSON for frontend consumption
- Sharing PHP fixture data as JSON
- Migrating PHP array data to JSON-based stores
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu