Home › Developer Tools › Merge Excel Files

Merge Excel Files

Combine several spreadsheets into one file: keep each file as its own worksheet in a single workbook, or stack all rows into one sheet with columns matched by header name. Works with XLSX, XLS, ODS and CSV, entirely in your browser.

Last updated:

Files
    Merge mode
    Advertisement
    Advertisement

    How to use the Merge Excel Files

    1. Add your files by dropping them on the box or clicking it. Three small sample files are shown until you add your own.
    2. Choose a merge mode: Append rows into one sheet to stack the data, or One sheet per file to collect the files as tabs of one workbook.
    3. Pick the sheets to use from each workbook: the first sheet only or all visible sheets.
    4. Set the header options: match columns by name, ignore case and spaces, and add a Source column.
    5. Check the preview and the per-file row counts, reorder files with the arrows if needed.
    6. Download the merged file as .xlsx or CSV.

    Append rows or one sheet per file?

    Append rows into one sheetOne sheet per file
    ResultOne long table with a single header rowOne workbook with a tab for each file (or each sheet)
    Best forMonthly exports, regional reports, survey batches with the same columns, data for a pivot tableCollecting separate reports into one file to send or archive
    Column matchingBy header name or by positionNot needed: sheets are copied as they are
    Source trackingOptional Source column with the file (and sheet) nameSheet names are taken from the file names
    Output.xlsx or .csv.xlsx

    How header matching works

    When you append, the first file's header defines the starting column order. Every following file is read header by header: a column whose name matches an existing column is placed under it, and a new name becomes a new column at the right. Rows from files that do not have that column get an empty cell. For example, merging a file with Date, Region, Units and one with Units, Date, Region, Notes produces Date, Region, Units, Notes, with Notes blank for the first file's rows.

    If two columns in the same file share a name, the second one is kept as a separate column called Name (2) rather than being merged into the first. If your files have no header row, untick First row is a header and columns are stacked strictly by position.

    Tips for a clean merge

    • Check the warning list under the preview: a column that appears in only one file usually means a header was spelled differently, such as Qty versus Quantity. Rename it in the source and merge again.
    • Keep the Source column when you will filter or pivot the result; it records exactly which file each row came from.
    • Excel limits a worksheet to 1,048,576 rows and 16,384 columns and a sheet name to 31 characters. Long file names are shortened automatically and duplicates get a (2), (3) suffix.
    • Need to clean up afterwards? Remove repeated rows with the duplicate remover, or merge plain CSV files with the CSV merger.

    Frequently asked questions

    How do I combine multiple Excel files into one?

    Add all the files here, choose One sheet per file and download: you get a single .xlsx workbook in which each original file is a separate worksheet named after the file. If you want all the data in one table instead, choose Append rows into one sheet.

    What happens if my files have columns in a different order?

    With Match columns by header name switched on, the tool lines up columns by their header text, not their position. A Revenue column lands under Revenue even if it is the second column in one file and the fifth in another. Columns that only exist in some files are added at the end and left blank for the others.

    Can I merge files whose headers differ only in capitals or spaces?

    Yes. Ignore case and extra spaces treats headers like 'Order ID', 'order id' and ' Order ID' as the same column. Turn it off if you need exact matching.

    Does it keep formulas and formatting?

    No. The merged file contains the values of each cell (the last calculated result of formulas), with dates kept as real Excel dates. Cell colours, fonts, merged cells, charts and formulas are not copied, which keeps the result clean and fast to open.

    Can I merge CSV files with Excel files?

    Yes. CSV, TSV, XLSX, XLSM, XLS and ODS files can be mixed. CSV delimiters (comma, semicolon, tab or pipe) are detected automatically and numbers and ISO dates become real numeric and date cells.

    Is there a limit on the number of files or rows?

    There is no fixed limit; the work is done in your browser's memory. Tens of files and a few hundred thousand rows merge comfortably on a typical computer. An Excel sheet itself holds at most 1,048,576 rows, so very large appends are better downloaded as CSV.

    Are my spreadsheets uploaded?

    No. The files are read and merged with JavaScript on your device and the result is created locally, so confidential data never leaves your computer.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Remove Duplicates in ExcelFind and remove or highlight duplicate rows in XLSX or CSV files by the columns you choose.CSV MergerCombine many CSV files into one, matching columns by name, with dedupe and a source column.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.CSV to Excel ConverterConvert CSV files to a real .xlsx workbook with typed numbers and dates, one sheet per file.Excel to SQL ConverterTurn an Excel sheet into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.JSON Merge ToolDeep-merge two or more JSON objects with array concat, replace or union and a conflict rule.Merge Lines Side by SideCombine two to four lists line by line with any separator, padding or filling uneven lengths.Merge Word DocumentsCombine several .docx files in any order into one Word document, with page or section breaks.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.CSV to JSONConvert CSV data to JSON with live preview.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.GeoJSON ViewerView GeoJSON on a map, inspect and edit properties, validate against RFC 7946 and export.GPX ViewerOpen GPX tracks on a map with distance, elevation profile, moving time, speed and splits.JSON Repair ToolFix broken JSON automatically: trailing commas, quotes, comments, truncated data, with a diff.Karnaugh Map SolverSolve 2–6 variable K-maps: click cells or enter minterms to get the minimal SOP or POS with groups.Parquet File ViewerOpen Apache Parquet files in your browser: schema, rows, filters and CSV or JSON export.Query CSV with SQLRun SQL on CSV, Excel, JSON and Parquet files in your browser with DuckDB. Join and export.Online Serial MonitorTalk to Arduino, ESP32 and USB serial devices in your browser: log, send, plot and save.Split Excel FileSplit an Excel sheet into several files by row count or by each value in a column, as ZIP.SQL Create Table GeneratorDefine columns, keys, defaults and indexes; get CREATE TABLE SQL for MySQL, Postgres and more.SQL IN Clause GeneratorTurn a pasted list into a SQL IN ('a','b') clause with quoting, dedupe and 1,000-item chunks.SQL Online CompilerRun SQL queries online on SQLite with sample databases, a result grid, CSV export and .db save.SQL to ER DiagramPaste CREATE TABLE statements and get an entity-relationship diagram with keys and links.XML to XSD GeneratorGenerate an XML Schema (XSD) from sample XML: types, occurrences, attributes and namespaces.XML ValidatorCheck if XML is well-formed, see the exact line and column of each error and pretty-print it.Wildcard Mask CalculatorConvert a subnet mask or CIDR to a wildcard mask for ACLs and OSPF, with range and binary.CSV to VCF ConverterConvert a contacts CSV into a vCard (.vcf) file, mapping columns to name, phone, email and more.CSV to YAML ConverterConvert CSV rows to a YAML list of mappings with type inference and delimiter detection.Endianness ConverterSwap byte order of 16, 32 and 64-bit hex values and see big- and little-endian integers and floats.Excel to VCF ConverterTurn an Excel contact list into a vCard .vcf file for iPhone, Android, Google or Outlook.File to C ArrayConvert any file into a C or C++ byte array header, like xxd -i, with const and PROGMEM options.Image to C ArrayConvert images to monochrome, RGB565 or RGB888 C arrays for OLED, LCD and TFT displays.JSONL to CSV ConverterConvert JSON Lines / NDJSON to CSV with flattened columns; streams large files locally.PHP Unserialize OnlineDecode PHP serialize() strings to JSON, a tree or print_r, and serialize JSON back to PHP.SQL Dialect ConverterTranslate SQL between MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery and more.TSV to JSON ConverterTurn tab-separated data pasted from Excel or Sheets into a JSON array or keyed object.XLS to XLSX ConverterConvert old Excel 97-2003 .xls workbooks to modern .xlsx files in your browser, several at once.XML to Excel ConverterTurn repeating XML elements into an .xlsx spreadsheet with attributes and nested data as columns.XSD to XML Sample GeneratorGenerate a sample XML document from an XSD schema, with types, attributes and namespaces.YAML to CSV ConverterTurn a YAML list of objects into CSV with dot-notation columns, custom column order and download.DOCX to Markdown ConverterConvert Word .docx to clean Markdown with headings, lists, tables, links and images in a ZIP.
    See all 129 Data & File Format Converters →