Grok and Excel or CSV files: limits, errors and connectors
Grok accepts CSV and XLSX uploads up to 150 MB per file and can analyse and chart them, but very long files may be summarised or handled in sections. An "unsupported text encoding" error usually means the CSV isn't UTF-8; re-save it as CSV UTF-8. For exact answers from every row, add a custom MCP connector at grok.com/connectors, which is available to all Grok users.
Uploading spreadsheets to Grok
Click + next to the message box on grok.com or in the app and pick your files, or drag them in on the web. xAI's guide lists CSV and XLSX among supported data files, up to 150 MB per file, with about 100 files per message on the web and 20 on Android. Grok can extract tables, compare files and chart data from CSVs and XLSXs.
The catch is in the same guide: very long files "may be summarized or handled in sections". For a 50-row budget that's fine. For a year of transactions, a summarised file means totals you can't fully trust.
Fixing "unsupported text encoding" on a CSV
xAI hasn't published an explanation for this error, but its API docs say plainly that it supports UTF-8 encoded text files. CSVs exported by older Excel versions, banks and accounting tools are often saved in Windows-1252 or UTF-16 instead, and a ₹, € or accented name in them is enough to trip the check.
- In Excel: File → Save As and choose CSV UTF-8 (Comma delimited), then upload again.
- In Google Sheets: File → Download → Comma-separated values, which is always UTF-8.
- Or upload the original XLSX instead of a CSV, or convert it in the browser with the Excel to CSV converter, which writes UTF-8.
Connect Grok to your files with a custom MCP connector
Grok's connectors cover Google Drive (including Sheets), OneDrive and more, and any user can add a custom MCP connector: a server that gives Grok tools. Fileshape Ask AI is a hosted, read-only one for spreadsheets. It cleans your file once (real header row, amounts as numbers, dates as YYYY-MM-DD) and lets Grok aggregate, filter and search it, computed over every row instead of a summary.
- Upload your file at fileshape.app/account/datasets.
- Go to grok.com/connectors, click New Connector, then Custom.
- Name it Fileshape, enter https://mcp.fileshape.app/mcp, then sign in to Fileshape and approve.
- Ask: "From my Fileshape files, what were my five biggest expenses in September?"
Grok connectors not working?
If Grok says the connector is connected but shows no tools, remove it and add it again. If you're testing your own server, Grok's servers must reach it over the public internet; localhost and private addresses fail unless you use a tunnel, as xAI's tunneling guide explains. Fileshape is already public, so that doesn't apply.
Using Grok Bot, xAI's cloud agent? In the desktop app choose Add a custom connector under Connect apps, pick Remote HTTPS and paste the same URL. Developers calling the xAI API can pass it as a remote MCP tool (server_url, with a Fileshape API key as authorization).
Fileshape's free plan covers 1 file of up to 50 MB, kept 7 days. You can mask or hide sensitive columns before upload and switch AI access off per file.
Convert or reshape a file in your browser. Nothing is uploaded.
Open the converterFAQ
Questions
What is Grok's file size limit?
Up to 150 MB per file for most documents, including CSV and XLSX, according to xAI's Grok.com guide. Limits can vary slightly by platform or subscription.
Can Grok read Excel files?
Yes. XLSX is a supported upload type, and Grok can extract tables and chart the data. Very long files may be summarised or read in sections.
Do I need SuperGrok for custom connectors?
No. xAI says connectors are available to all Grok users. On Grok Business and Enterprise, an admin must enable a connector first.
Can Grok change my spreadsheet through Fileshape?
No. Fileshape's tools only read, and your original upload is deleted after it's cleaned.
More from the blog
Keep reading
- AI for data analysis: which tool to use, and how to trust the answersThe three ways to use AI for data analysis (chat uploads, spreadsheet add-ins, connected agents), which fits which job, and how to check the numbers.
- How to upload files to ChatGPT and Claude, and share them with any AIUpload a file to ChatGPT or Claude, fix uploads that fail, and share the same files with every AI app through one URL instead of re-uploading.
- Is it safe to upload a bank statement to ChatGPT or Claude?What ChatGPT and Claude keep when you upload a bank statement, the settings that stop training on it, and how to share only the columns the AI needs.
- Bank statement analysis with ChatGPT or Claude: prompts that get the numbers rightCopy-paste prompts for analysing a bank or card statement in ChatGPT or Claude, plus how to prepare the file so the totals come out right.
Updated 2026-11-18