Outils développeur
Array to JSON converter
Paste a PHP array, a JavaScript array, or JSON. Get pretty JSON back. Nothing is uploaded.
Traité dans le navigateur — rien n’est envoyé
Parses JSON first. If that fails, it reads PHP array() / [] with => pairs, JavaScript arrays and objects (single quotes, unquoted keys, trailing commas), and Power Automate-style createArray().
Dernière révision 2026-09-10.
FAQ
Questions, réponses
Can I convert a PHP array to JSON?
Yes. Paste array('foo' => 'bar') or ['foo' => 'bar']. This is a PHP array to JSON converter — php convert array to json, convert php array to json, and array to json php all run here.
Does it convert a JavaScript array to JSON?
Yes. JS array to JSON and convert array to json javascript work with single quotes, unquoted keys, and trailing commas. Valid JSON is pretty-printed as-is.
What about Power Automate array to JSON?
Paste the array output from a Compose or Select action. JSON arrays convert directly. createArray('a', 'b') is also accepted.
Does my text leave the browser?
No. The array to JSON converter runs in JavaScript on this page. Your paste is not uploaded.
Connexes