PHP print_r to Excel Converter Online
Convert PHP print_r() output to Excel or CSV instantly. Paste any print_r array output and download as .xlsx with 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. Supports simple arrays, nested arrays, multi-level objects, and mixed data. Deeply nested values are auto-flattened into columns. Complex arrays 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 format that starts with "Array\n(\n [key] => value\n)". Do not paste PHP source code.
How is this different from PHP Array to Excel?
PHP Array to Excel accepts PHP source code syntax ($data = [...]). This tool accepts the printed output of print_r() which has a different indentation-based format.
Does it handle nested arrays?
Yes. Deeply nested objects and arrays are automatically flattened into dot-notation columns (e.g. profile.social.twitter). You can also choose to show them as JSON or comma-joined values.
Can I download as CSV?
Yes β use the Download CSV button to export the currently active sheet as a CSV file.