Guide · checked 23 November 2026

CSV file too large for Excel on Mac

Excel for Mac stops at 1,048,576 rows per worksheet. Here is what to do with a CSV that has more, with every option and what it costs.

Real-time capture · Mac build · 5 GiB · 89,158,916 rows × 8 columns · 2026-11-23
Rows per worksheet
1,048,576
Columns per worksheet
16,384
Power Query on Mac
Imports CSV, but cannot load into the Data Model, so the result goes to a sheet with the same row limit.

Excel loads the first 1,048,576 rows of a CSV and drops the rest after a warning. The data is not lost on disk, but anything you save from that sheet contains only the part Excel kept.

The limit comes from the worksheet, not from the file size or from your Mac. Every fix below either works on a smaller piece of the file or avoids the worksheet.

Your options

  1. Split the file

    The built-in split command cuts the file into parts that each fit in Excel. The header row is written once, so each part gets it added back.

    Good for: Needs no install. Every part opens in Excel or any other app.

    Costs: You work on parts, not on one file. A row with a quoted line break can be cut in half, because split counts lines, not records.

    head -n 1 big.csv > header.csv
    tail -n +2 big.csv | split -l 1000000 - part_
    for f in part_*; do cat header.csv "$f" > "$f.csv" && rm "$f"; done
  2. csvkit

    A Python toolkit. csvgrep filters rows whose column matches a regular expression, csvstat counts rows and summarizes columns.

    Good for: Readable commands and many other tools in the same kit, such as csvcut and csvsort.

    Costs: Written in Python, so it is slow on multi-gigabyte files.

    csvstat --count big.csv
    csvgrep -c country -r '^Germany$' big.csv > germany.csv
  3. qsv

    A fast command-line tool for CSV written in Rust. It counts, filters, and selects without loading the whole file.

    Good for: Fast on large files. One binary, no runtime.

    Costs: A command-line tool with many commands; the filter takes a regular expression, not a plain value.

    qsv count big.csv
    qsv search -s country '^Germany$' big.csv -o germany.csv
  4. DuckDB

    An embedded SQL database. It reads a CSV file directly, and COPY writes any query result to a new, smaller CSV.

    Good for: Full SQL, including grouping and joins, with no import step.

    Costs: You need to know SQL. The output is a new file, not an edit of the original.

    duckdb -c "SELECT count(*) FROM 'big.csv';"
    duckdb -c "COPY (SELECT * FROM 'big.csv' WHERE country = 'Germany') TO 'germany.csv' (FORMAT CSV, HEADER);"
  5. Power Query in Excel for Mac

    Excel for Mac can import a CSV through Power Query, so you can filter or remove columns before the data reaches the sheet.

    Good for: Stays inside Excel, with steps you can refresh.

    Costs: Excel for Mac cannot load into the Data Model, so the result goes into a worksheet and the 1,048,576-row limit applies to it.

  6. TabTool

    A free, MIT-licensed CSV editor. In large file mode it memory-maps the file and builds a row index in the background, so rows appear at once and you can scroll, jump to a row, find text, filter rows, and edit cells with undo.

    Good for: Opens the whole file and edits it in place. Save streams the file and rewrites only the edited rows. Nothing is autosaved.

    Costs: Large file mode has no structural commands, sorting, export, Duplicate, or decimal mark. Saving needs free disk space of about twice the file size.

How fast is TabTool on a huge file?

What was measuredResultSetup
Benchmark script, 5.00 GiB file with 68.2 million rows45 ms to the first 64 rows, 1.97 s to a full index./scripts/bench-large 5, release build, Apple M4 Pro, 24 GB, APFS SSD, file in the page cache. Generated CSV, 8 columns.
Release app, 5.0 GiB file with 77.7 million rowsFully indexed 2.7 s after launchThe sandboxed app from the release build, not the script.

Method is in the large files section on GitHub; the script is scripts/bench-large.

Try TabTool

Download on the Mac App Store

Sources · checked 23 November 2026