Herramientas de desarrollo
Array to JSON converter
Paste a PHP array, a JavaScript array, or JSON. Get pretty JSON back. Nothing is uploaded.
Procesado en el navegador — no se sube nada
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().
Última revisión 2026-09-10.
FAQ
Preguntas, respondidas
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.
Relacionadas
Sigue
Herramientas de desarrollo
Formateador JSON
Embellece, minifica y valida JSON por completo en el navegador.
Herramientas de desarrollo
CSV ↔ JSON
Convierte CSV en un array de objetos, o arrays JSON de vuelta a CSV.
Herramientas de desarrollo
JSON ↔ YAML
Convierte JSON a YAML y YAML de vuelta a JSON en el navegador.