Excel row limit: 1,048,576 rows, and what to do with bigger files
An Excel worksheet holds at most 1,048,576 rows and 16,384 columns (column XFD), in every version since Excel 2007; the old .xls format stops at 65,536 rows. Open a CSV with more rows and Excel loads only the first 1,048,576 and warns that the file wasn't loaded completely. For bigger files, split them, load them into Power Pivot, or query them without Excel.
Excel's limits at a glance
The limits that matter for large data files, per worksheet:
- Rows: 1,048,576 (2^20) in .xlsx; 65,536 in the legacy .xls format.
- Columns: 16,384 (A to XFD) in .xlsx; 256 (A to IV) in .xls.
- Characters in one cell: 32,767.
- Google Sheets, for comparison: 10 million cells per spreadsheet in total, so a wide sheet runs out of rows much sooner.
What happens when a CSV is too big
A CSV has no limit of its own, and exports from banks, stores, analytics tools and databases easily pass a million rows. When you open one in Excel, it reads the first 1,048,576 rows, drops the rest and shows a message that the file wasn't loaded completely. If you then save, the rows that didn't load are gone from that copy, which is the real risk: keep the original CSV.
Long before the hard limit, big sheets get slow. Formulas recalculate across the whole range, filters lag and the file takes minutes to open. See why a large Excel file is slow for what usually causes it and how to shrink it.
Ways to work with more than 1,048,576 rows
Pick the one that fits what you need to do with the data:
- Filter before you open. If you only need one region, year or account, filter the export at the source so it fits.
- Split the file. Cut the CSV into parts under a million rows each, every part starting with the header row. If the parts are meant for an AI chat, the share with AI tool splits a CSV in your browser into parts sized for ChatGPT's, Claude's or Gemini's upload limit.
- Power Query and Power Pivot. In Excel, Data → Get Data → From Text/CSV loads the file into the Data Model instead of a sheet, which holds far more rows for pivot tables.
- Use a database or a script. SQLite, DuckDB or pandas read CSVs of any size if you're comfortable with a little code.
- Ask AI without opening it. Upload the file to Fileshape Ask AI, or paste its URL if it's in S3, Google Cloud Storage or R2, and ask ChatGPT, Claude or Cursor questions about every row: totals, filters, top items, trends. The file is cleaned and queried on the server, so its size doesn't count against the AI's context.
Ask AI about this file
Ask ChatGPT, Claude or Cursor about your file. Fileshape cleans it, masks personal columns and gives your AI one link, so totals come from every row.
FAQ
Questions
What is the maximum number of rows in Excel?
1,048,576 rows per worksheet in Excel 2007 and later (.xlsx). The older .xls format allows 65,536.
How many columns can Excel have?
16,384 columns per worksheet, from A to XFD. The old .xls format allows 256.
Can I increase Excel's row limit?
No. The limit is fixed per worksheet. To work with more rows, split the data across sheets or files, load it into the Data Model with Power Query, or use a tool that doesn't load the file into a sheet.
How do I open a CSV with more than a million rows?
Load it with Power Query into the Data Model, split it into smaller files, open it in a database tool, or upload it to Fileshape and query it from ChatGPT or Claude.
More from the blog
Keep reading
- Claude MCP: how to add connectors in claude.ai, Claude Desktop and Claude CodeThe three ways to add an MCP server to Claude: custom connectors in claude.ai, the Claude Desktop config file and claude mcp add in Claude Code.
- ChatGPT MCP: how to add an MCP server (what used to be a custom connector)Which ChatGPT plans can add a custom MCP server, the steps on the Plugins page, sign-in options and limits, with a spreadsheet server as the example.
- Filesystem MCP server: what it is, how to set it up, and where it stopsWhat the official Filesystem MCP server does, the Claude Desktop config for it, its tools and limits, and what to use in claude.ai or ChatGPT instead.
- The best MCP servers for files, by what you need them to doAn honest list of MCP servers for files, picked by job: local folders, CSV and Excel, Google Sheets, PDFs, databases and cloud drives.
Updated 2026-11-27