JSON ↔ PHP Array Converter
Convert JSON to PHP array syntax or PHP array to JSON. Pretty formatting and validation. All processing runs in your browser.
Example
Paste JSON like {"name":"test","count":42} and click JSON → PHP to get PHP array syntax. Use PHP → JSON for the reverse. Supports nested arrays and associative arrays.
FAQ
[] and array() with string or numeric keys. Complex PHP (objects, etc.) may not parse.
Data Transformation Tools
JSON Formatter & Validator
Format, minify, and validate JSON with error messages and line numbers.
SQL Formatter
Beautify SQL with indentation and uppercase keywords.
CSV Header Validator
Detect duplicate or empty headers and column count issues.
Regex Tester
Test regex patterns, highlight matches, and show capture groups.
Timestamp Converter
Unix timestamp to date, date to timestamp, timezone, current time.
Color Converter
Convert HEX, RGB, HSL. Color preview and copy.
JSON Diff Tool
Compare two JSON objects. See added, removed, changed.
Text Diff Checker
Compare two text blocks. Highlight additions and deletions.
Lorem Ipsum Generator
Generate paragraphs, sentences, or words.
Case Converter
UPPERCASE, lowercase, camelCase, PascalCase, snake_case, kebab-case.
Text Statistics
Word count, character count, sentence count, reading time.
SQL Query Generator
Build SELECT with table, columns, WHERE, LIMIT.