Skip to content

Browser tool

Stack CSV files in a chosen order

Combine CSV exports with the same columns into one table. Check how many records each file contributes and choose which file comes first.

Choose inputs and their order

Add two or more tables in the order you want their rows to appear. Each must have the same columns in the same order.

Use UTF-8 text with one delimiter. Limits: 100,000 characters of input in total (some characters count as two), 2,000 data records and 64 columns.

With headers, every heading must match exactly in the same position. One header is kept. Without headers, the first record in every input is data and all widths must match. Check that each position has the same meaning across inputs.

Input 1
Input 2

Enable JavaScript to use this tool in this tab.

Open a file, paste text or try the sample.

Match the columns first

Choose the delimiter. If each file starts with headings, use the header option. Every heading must match the first file at the same position, including spaces and letter case. Repeated headings and unnamed columns are compared by position too. In headerless mode the first record is data; check the column meanings yourself.

Put the files in order

Open files or paste each table as a separate input. Move the inputs into the order you want. Rows keep their order within each input. Matching records from two files both remain in the result.

Check the totals

Compare each input’s data-record count with its source and check the sum. With headings enabled, exclude each input’s header from its data count. The combined CSV starts with a single header row. A quoted note on two lines counts as one cell in one record.

Keep a copy you can check

JSON retains the original cell strings, including leading zeros, long integers and surrounding spaces. CSV output protects cells that could be read as formulas with a leading apostrophe. A mismatch in width or headings needs a correction to the input before you can combine it.

Continue with a check