Report

Help us improve this tool

TSV to PHP Array Converter

Export tab-separated spreadsheet rows as PHP array syntax with short or long notation.

O M T

Export TSV data as PHP arrays

Laravel and legacy PHP apps often need seed data or config arrays from spreadsheet exports. Paste tab-separated rows to generate short or long PHP array syntax with optional type coercion.

See also: CSV to PHP Array Converter, TSV to JSON Converter, and JSON to PHP Array Converter.

Frequently Asked Questions

What is the difference between short and long syntax?

Short syntax uses square brackets, which is typical in modern PHP. Long syntax uses array() for older codebases.

How are headers handled?

When the first row is a header, each data row becomes an associative array keyed by column names.

Is my data sent to a server?

No. TSV parsing and PHP formatting happen entirely in your browser.