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

  1. Paste the PHP array code
  2. Click Convert
  3. Choose pretty or minified JSON
  4. 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