Advertisement

Expand inline arrays and objects onto clean indented lines, or collapse them back inline — for PHP, JavaScript, TypeScript, JSON, Python, Ruby and more.

Everything runs in your browser — your code is never uploaded.

Works with array & object literals from PHP, JavaScript, TypeScript, JSON, JSON5, Python, Ruby, Perl, Java, C, C++, C#, Go, Rust, Swift, Kotlin, Dart and Lua — any syntax built from ( ) [ ] { } brackets, commas and quoted strings.
Indent
input
output
[ ] Your formatted array appears here.


Popular searches
array formatter array beautifier php array formatter javascript array formatter expand array to multiple lines inline array to multiline multiline array to inline json array formatter
Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.