Ferramentas de programação
Array to JSON converter
Paste a PHP array, a JavaScript array, or JSON. Get pretty JSON back. Nothing is uploaded.
Processado no navegador — nada é carregado
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 revisão 2026-09-10.
FAQ
Perguntas, 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
Continuar
Ferramentas de programação
Formatador JSON
Formate, minifique e valide JSON inteiramente no navegador.
Ferramentas de programação
CSV ↔ JSON
Transforme CSV num array de objetos, ou arrays JSON de volta em CSV.
Ferramentas de programação
JSON ↔ YAML
Converta JSON para YAML e YAML de volta para JSON no navegador.