PHP print_r to Excel Converter
Convert PHP print_r() output to Excel or CSV instantly. Paste any print_r array output and download as .xlsx with automatic multi-sheet support.
About PHP print_r to Excel
Paste the text output of PHP's print_r() function and instantly convert it into a structured Excel spreadsheet. The tool parses the indentation-based format that print_r() produces and reconstructs the array structure into rows and columns. Supports simple arrays, nested arrays, multi-level objects, and mixed data. Deeply nested values are auto-flattened into columns using dot notation. Complex arrays with multiple top-level keys become separate sheets automatically.
Frequently Asked Questions
What format does this tool accept?
Paste the raw text output of PHP's print_r() function β the indentation-based format starting with Array followed by brackets and key-value pairs.
How is this different from PHP Array to Excel?
PHP Array to Excel accepts PHP source code like $data = [...]. This tool accepts the printed text output of print_r() which has a different indentation-based format.
Does it handle nested arrays?
Yes β nested arrays are automatically flattened into dot-notation columns such as profile.social.twitter.
Can I download as CSV?
Yes β use the Download CSV button to export the currently active sheet as a CSV file.
Is it free?
Yes, completely free, no signup required.