100% private · runs in your browser

Merge CSV Files Online

Combine multiple CSV files into one clean file, free and online. Match columns by header, remove duplicate rows and download the merged CSV. No uploads, no sign-up.

  • Free forever
  • No file uploads
  • Handles large files
  • Any delimiter
Drag & drop your CSV filesorCSV, TSV, TXT · processed on your device, never uploaded

    How to Merge CSV Files Online in 3 Steps

    Three steps, no learning curve.

    1. Add your files

      Drop two or more CSV, TSV or TXT files onto the upload area, or browse for them on your device.

    2. Set your options

      Reorder the files, choose how columns match, and enable clean-up such as removing duplicate rows.

    3. Merge & download

      Preview the combined data, then download the merged CSV file or copy it to the clipboard.

    Everything You Need to Merge CSV Files

    A free CSV merger with powerful options and zero setup.

    Private by design

    No uploads, no accounts. Files are processed locally in your browser.

    Smart column matching

    Merge files with different columns by header name, or stack by position.

    Any delimiter

    Auto-detects comma, semicolon, tab and pipe, and handles quoted and multi-line cells.

    Clean-up tools

    Remove duplicates, trim whitespace, skip blank rows and tag rows with their source file.

    Reorder files

    Move files up or down to control the order of the merged output.

    Excel friendly

    Optional UTF-8 BOM and CRLF line endings so accents display correctly.

    What Does It Mean to Merge CSV Files?

    To merge CSV files means to append the records of two or more comma-separated values files into a single file, usually under one shared header row. The result is one consolidated dataset that opens in Excel, Google Sheets, a database or any analytics tool, instead of a folder of fragments.

    What a CSV file contains

    A CSV file is plain text that represents a table. Each line is one record, and a delimiter separates the fields inside it. The delimiter is most often a comma, but semicolons, tabs (TSV) and pipes are common too. The first line usually holds the column names, called the header row. Fields that contain the delimiter, a quotation mark or a line break are wrapped in double quotes, with embedded quotes doubled, a convention described in RFC 4180. The format has no schema and no data types, so every value is just text until a program interprets it.

    Appending versus joining

    Appending, also called concatenation, places the rows of one file beneath another. Use it when the files hold the same kind of record, such as one export per month. Joining combines columns by matching a key, such as a customer ID or an order number, and works like a database JOIN or a spreadsheet lookup. If your files describe the same entities with different attributes, you need a join. This tool appends.

    When combining files makes sense

    Combine files when one dataset arrives in pieces: one export per month, region, store, campaign or page of results. Data consolidation makes the whole set easier to filter, sort, chart, import into a database and share, and it removes the risk of working from an out-of-date fragment.

    Supported File Formats: CSV, TSV, TXT and Excel

    The merger reads any delimited text file, so exports from spreadsheets, databases, CRMs and analytics platforms can be combined in one pass, even when each file uses a different separator.

    CSV files

    Standard comma-separated values files with the .csv extension. The delimiter is detected for each file separately, so a semicolon-separated export from a European version of Excel can be merged with a comma-separated export from another system. You choose one output delimiter for the combined file.

    TSV and TXT files

    Tab-separated values and plain-text exports from databases, log tools and reporting systems are read with the same parser. Quoted fields, embedded commas and multi-line cells are handled according to the RFC 4180 quoting rules.

    Excel workbooks and Google Sheets

    XLSX and XLS workbooks are binary files, so convert them first. In Excel choose File, Save As, CSV UTF-8 (Comma delimited) for each worksheet. In Google Sheets choose File, Download, Comma-separated values, and in Apple Numbers choose File, Export To, CSV. Merge the CSV files, then open the result in your spreadsheet.

    UTF-8 text encoding

    Files are read as UTF-8, the encoding used by almost every modern system. If accented letters or symbols look wrong, the source was saved in a legacy encoding such as Windows-1252. Re-save it as UTF-8 and merge again.

    Prepare Your CSV Files Before Combining

    Preparation decides how clean the merged file will be. Most failed merges trace back to inconsistent headers, a mixed delimiter or encoding, or stray rows inside the data, and all of them take only a few minutes to check.

    Match header names

    Columns that mean the same thing should share identical spelling and capitalisation. "Email", "E-mail" and "email address" would otherwise become three separate columns in the merged file. Rename them in the source files first, or plan to map them afterwards.

    Check the delimiter and encoding

    Note whether each file separates fields with a comma, semicolon, tab or pipe, and whether it is saved as UTF-8. Regional spreadsheet settings often export semicolon-separated files, and older systems may use legacy encodings that corrupt accented characters when they are mixed with UTF-8 data.

    Standardise value formats

    Dates, decimals, currencies and boolean values should follow one convention. A mix of 03/04/2026 and 2026-04-03, or of 1,5 and 1.5, makes sorting, filtering and arithmetic unreliable after the files are combined.

    Remove extra rows and keep a backup

    Delete report titles, subtotals, notes and footers that would land in the middle of the data, and work on copies so the originals stay untouched. A merge is easy to repeat when the sources are intact.

    Methods to Combine CSV Files

    There are four dependable ways to merge CSV files: a browser-based tool, spreadsheet software, the command line and a script. They differ in setup effort, the amount of data they handle and how easily the job can be repeated.

    In your browser

    Quick jobs

    The fastest option for one-off jobs, whether you have two files or two hundred. It works on Windows, Mac, Linux and Chromebook, and needs no installation.

    1. Drop the files into the upload area.
    2. Set their order and choose how columns match.
    3. Download the result or copy it to the clipboard.

    In Excel and Google Sheets

    Spreadsheets

    For a few files, copy the data rows of each file beneath the first and leave out the repeated headers. For a whole folder, use Power Query.

    1. Open Data, Get Data, From File, From Folder.
    2. Select the folder and choose Combine and Transform Data.
    3. Check the preview in the Power Query Editor.
    4. Select Close and Load. Power Query can refresh when the files change.

    One worksheet holds at most 1,048,576 rows. In Google Sheets, File, Import can append an uploaded file to the current sheet, one file at a time. A VBA macro can also loop through a folder, but it needs maintenance.

    On Mac, Linux and Windows

    Command line

    The terminal suits repeatable jobs. A plain cat on Mac and Linux, or copy in Windows Command Prompt, repeats every header line, so awk keeps only the first one.

    cd ~/Documents/csv-files
    awk 'FNR==1 && NR!=1 {next} {print}' *.csv > ../combined.csv

    Keep only the CSV files you want in the folder, because a wildcard matches unrelated files, and write the output outside the source folder. On Windows, PowerShell's Import-Csv and Export-Csv do the same job.

    With Python and pandas

    Automation

    Scripts handle scheduled jobs and very large data. pandas reads each file into a DataFrame, concatenates them and aligns columns by name.

    import glob
    import pandas as pd
    
    files = sorted(glob.glob("data/*.csv"))
    combined = pd.concat((pd.read_csv(f) for f in files), ignore_index=True)
    combined.to_csv("combined.csv", index=False)

    ignore_index renumbers the rows, and index=False keeps the row numbers out of the output.

    MethodBest forSetupRepeatable
    Browser toolQuick jobs, any number of filesNoneManual
    Excel Power QueryA folder that keeps changingExcel 2016 or laterRefreshable
    Command lineServers and developer workflowsTerminalScriptable
    Python and pandasAutomation and very large dataPythonFully automated

    Handling Files With Different Columns

    Real exports rarely share one layout. When columns differ, aligning them by header name builds the union of all columns, so every value ends up under the right heading and missing values stay blank.

    idname
    1Ann
    2Bob
    idcity
    3Rome
    4Oslo
    idnamecity
    1Ann
    2Bob
    3Rome
    4Oslo

    Match by header name

    Builds the union of all columns, places each value under the matching heading and leaves a blank where a file has nothing to add. This is the safest option when files come from different systems or different versions of the same export.

    Stack by position

    Use this when the files share one layout but have no header row, or when headers are inconsistent. Fields are matched by their position, so column order must be identical in every file.

    Fix renamed or misspelled headers

    A small spelling difference splits one real column in two. Normalise header names before combining, or review the merged header row once and correct any near-duplicates.

    Cleaning Data While You Combine

    Consolidating files is also the cheapest moment to tidy the dataset. Deduplication, trimming and skipping blank rows happen in the same pass, so the merged file is ready to use.

    Remove duplicate rows

    Records that appear in more than one file are kept once, so totals, counts and averages are not inflated. Deduplication compares whole rows, so identical records match even when they come from different files.

    Trim whitespace

    Stray leading and trailing spaces cause failed lookups and values that look identical but do not match. Trimming each cell before combining keeps joins and filters dependable later.

    Skip blank rows

    Empty lines are dropped, so row counts stay accurate and downstream tools do not read blank records as data.

    Track the source file

    A column holding the original file name preserves provenance, sometimes called data lineage. It makes auditing, troubleshooting and filtering by origin easy once everything sits in one table.

    Check the Merged CSV File

    A quick quality check after combining CSV files catches problems before the data reaches a report, an import or a client. These four checks take less than a minute.

    Compare row counts

    The summary shows how many data rows were written and from how many files. It should equal the data rows of all source files, minus any duplicates and blank rows you chose to remove. A large gap usually points to a header problem or an unexpected delimiter.

    Inspect the header row

    Read the merged header once. Near-duplicate columns such as "Email" and "email" mean two files spelled a heading differently, and a column that is almost entirely empty often belongs to only one source file.

    Spot-check each source

    Turn on the source_file column, then compare the first and last rows from each file with the originals. Filtering by source makes it easy to confirm that every file landed in the right place.

    Open it the right way

    In Excel use Data, From Text/CSV so you control column types and keep leading zeros. In Google Sheets use File, Import. Databases load CSV directly: PostgreSQL with COPY ... WITH (FORMAT csv, HEADER), MySQL with LOAD DATA INFILE and SQLite with .import --csv.

    Fixing Common CSV Problems

    Most surprises come from how a program reads the file, not from the data itself. Each card below shows the symptom you will see, why it happens and how to fix it.

    Garbled accents

    Cause
    The encoding was misread.
    Fix
    Save the result as UTF-8 with a byte order mark (BOM) so Excel detects it, and avoid mixing legacy encodings in the same merge.

    Everything in one column

    Cause
    The file uses a semicolon or tab, but the program expected a comma.
    Fix
    Choose the matching delimiter, or let the tool detect it for each file.

    Lost leading zeros and scientific notation

    Cause
    Excel converts codes such as ZIP codes and long identifiers into numbers.
    Fix
    Import those columns as text, or keep the result as a CSV file instead of re-saving it from Excel.

    The Excel row limit

    Cause
    A worksheet stops at 1,048,576 rows.
    Fix
    Keep very large results as CSV and open them in a database, a script or an analytics tool.

    Repeated headers

    Cause
    Plain concatenation, such as the Windows copy command or cat, copies every header line into the middle of the data.
    Fix
    Use a method that writes the header only once.

    Quotes and line breaks inside cells

    Cause
    A comma or line break inside a field breaks naive text joining.
    Fix
    Use a parser that follows the quoting rules so those cells stay intact.

    Mixed line endings

    Cause
    Windows files end lines with CRLF and Unix files with LF.
    Fix
    Pick one line-ending style for the output so the receiving system reads every row.

    Privacy and File Size

    Your data stays with you. The merge runs entirely in the browser, so sensitive spreadsheets never travel to a server.

    Local processing

    Many online converters upload documents to a remote server. Here the work runs as JavaScript in your browser tab, using local memory. Customer lists, financial exports and survey results stay on your device, which supports privacy rules such as GDPR. There is no account and nothing is stored, and closing the tab removes the data.

    How large can the files be

    The practical limit is your device memory. Most computers manage hundreds of megabytes comfortably. For multi-gigabyte data, a script or a database import is a better fit than a browser tab.

    Common Use Cases

    Wherever one dataset is exported in parts, merging CSV files into one saves repeated manual work. These are the situations where it pays off most.

    Reports and finance exports

    Monthly sales, invoices, orders and bank statements become one annual file that is ready for a pivot table or an audit.

    Contacts and CRM lists

    Lists from a CRM, an email platform and event sign-ups are gathered in one place, ready for deduplication before an import.

    Analytics exports and product feeds

    Search and web analytics exports are prepared for a dashboard, and supplier feeds and inventory sheets are assembled for an online store.

    Data pipelines

    One clean file feeds machine learning, reporting or an ETL job, without writing code for a one-off consolidation.

    CSV Terms Explained

    A short glossary of the terms used when you merge, combine, append or concatenate CSV files.

    Delimiter
    The character that separates fields in a row, also called the separator. Common delimiters are the comma, semicolon, tab and pipe.
    Header row
    The first line of a CSV file, holding the column names. A merged file should contain exactly one header row.
    Record and field
    A record is one row of data. A field, or cell, is a single value inside that row.
    Quoting and escaping
    Fields that contain the delimiter, a double quote or a line break are wrapped in double quotes, and an embedded quote is written twice. RFC 4180 describes this convention.
    Character encoding
    The rule that maps bytes to characters. UTF-8 covers every language. A byte order mark (BOM) at the start of the file helps Excel recognise UTF-8.
    Line endings
    Windows ends each line with CRLF (carriage return and line feed), while macOS and Linux use LF. Most tools accept both.
    Concatenation
    Appending the rows of several files one after another. It is the operation this tool performs, and the vertical counterpart of a join.
    Column union
    The full set of column names across all input files. Matching by header name builds the union and leaves cells blank where a file has no value.
    Deduplication
    Removing rows that are exact copies of another row, so counts, totals and averages are not inflated.
    Flat file
    A single table stored as plain text, with no formulas, formatting, data types or relationships. CSV is the most widely used flat-file format.

    Merge CSV Files: Frequently Asked Questions

    Quick answers about privacy, file formats, Excel and limits.

    Are my CSV files uploaded to a server?

    No. Everything runs in your browser with JavaScript. Your files are read locally and never sent anywhere.

    How many files can I merge?

    There is no fixed limit. The practical limit is your device memory; most computers handle hundreds of megabytes comfortably.

    What if my files have different columns?

    Choose "Match by header name" to build a union of all columns and align each file under the right header, or "Match by position" to simply stack rows.

    Does it support semicolon, tab or pipe separated files?

    Yes. The delimiter is detected automatically per file, and you can pick any output delimiter.

    Is this CSV merger really free?

    Yes. Merging CSV files is free, with no account, no watermark and no cap on the number of files or rows. The only limit is the memory of your own device.

    Can I merge CSV files on a Mac, iPhone or Android phone?

    Yes. The tool works in current versions of Chrome, Safari, Firefox and Edge, on desktop and mobile. On a phone, pick the files from the Files app or your device storage. Very large files are more comfortable on a computer.

    Can I merge Excel files with this tool?

    Save each workbook or worksheet as CSV UTF-8 first, using File, Save As in Excel or File, Download in Google Sheets. Then merge the CSV files and open the combined file in Excel.

    Can I combine CSV files that use different delimiters?

    Yes. The delimiter of each file is detected on its own, so comma, semicolon, tab and pipe separated files can be merged together. The output uses the single delimiter you choose.

    Can I merge CSV files that have no header row?

    Yes. Untick "First row of each file is a header". Every line is then treated as data and the rows are stacked by position, so the column order must be the same in every file.

    How are duplicate rows detected?

    A row is a duplicate when every cell matches a row that was already written, after optional whitespace trimming. The source_file column is ignored in the comparison. To remove duplicates by a single key column, such as an email address, use a spreadsheet or pandas drop_duplicates with a subset.

    In what order are the rows written?

    Files are written in the order shown in the list, and rows keep their original order inside each file. Use the arrow buttons to move a file up or down before you merge.

    Will merging change my data?

    No. Values are copied as text exactly as they appear in the source, without type conversion or rounding. Only the options you enable, such as trimming whitespace or removing duplicates, change the output.

    Is merging the same as joining CSV files?

    No. Merging here means appending: the rows of each file are stacked under one header. A join matches rows from different files using a shared key, such as a customer ID, and is usually done in a database, a spreadsheet lookup or pandas.

    Will the combined file keep a single header row?

    Yes. When the first row of each file is a header, the tool writes one header row and appends the data rows from every file beneath it.

    What if my data is larger than the Excel row limit?

    A worksheet holds 1,048,576 rows. Keep very large results as a CSV file and open them in a database, a script or an analytics tool instead of saving them as a workbook.

    Do I need to install software or write code?

    No. The tool runs in any modern browser on Windows, Mac, Linux and Chromebook. There is nothing to install and no code to write.

    Ready to Combine Your CSV Files?

    It takes a few seconds and your data stays on your device.

    Merge files