How to hide personal data in a spreadsheet before you share it with AI
Remove the columns your question doesn't need before the file goes anywhere. Names, addresses and dates of birth can usually go entirely. Account, card and phone numbers can be cut down to their last 4 digits, which is still enough for the AI to group rows by them.
Most questions need three or four columns
Open a typical bank statement export and count the columns. You'll find the date, a description and the amount, and next to them the account holder's name, the full account number, a branch code and sometimes a cheque number, repeated on every row. A CRM export is worse: email, phone, street address and job title for every contact.
Now look at what you were going to ask. "How much did we spend on software last quarter?" uses the date, the description and the amount. Nothing else. Everything else in the file goes to the AI provider because it happened to be in the export.
Once you've attached the file to a chat it's too late to change that, so the cleanup has to happen on your computer first.
Deciding column by column
We use a simple test. If the AI needs to read the value, share it. If it only needs to tell two values apart, mask it. If it needs neither, hide it.
In practice that means amounts, dates, categories, product names and regions are shared. Account numbers, card numbers, phone numbers, emails, PAN, Aadhaar, SSN and UPI IDs are masked, because questions like "spend per card" or "orders per customer" still need them as labels. Names, home addresses and dates of birth are hidden: we haven't seen many useful spreadsheet questions that need them.
Free-text notes are the hard case, and we come back to them below.
How masking keeps the numbers right
Masking only works if the same value always comes out the same. Keep the last 4 characters and replace the rest: 4417 1234 5678 becomes XXXX XXXX 5678. Two transactions on that card still match, so the AI can total them. For emails, keep the first letter and the domain (r***@example.com) so you can still group customers by company.
Don't mask amounts or dates. A scrambled amount doesn't protect much, and it turns every total into nonsense without any warning. If a figure is too sensitive to share, leave the column out and ask a question that doesn't need it.
Doing it without uploading the file
Deleting columns in Excel works for a one-off. Masking is more fiddly there, since every kind of identifier needs its own formula, and it's easy to miss the second phone column on the far right.
Hide · Mask · Shrink does this in the browser. Drop a file in and it marks columns that look personal, going by the header and by what the values look like (card numbers have to pass the Luhn check, for example, so a column of order IDs isn't flagged by mistake). Names, addresses and dates of birth start as hidden and identifiers as masked. Change anything you disagree with, check the preview, and download the cleaned copy. The file itself is never uploaded.
If you'd rather connect the file to your AI apps than attach it to each chat, Ask AI asks the same questions before upload, and hidden columns are not sent at all.
The part no tool gets right: free text
Bank narrations are a good example. A line like "UPI/RAVI KUMAR/ravi@okbank/rent" holds a name and a UPI ID, and it's also the column that tells the AI what a payment was for. Column rules can't split that.
Read twenty or so rows of each text column before you share it. If you need the descriptions, keep them and know what's in there. If you don't, hide the column.
Convert or reshape a file in your browser. Nothing is uploaded.
Open the converterFAQ
Questions
Is masking the same as anonymising?
No. A masked column still links rows together, which is the point. Combined with dates and amounts, that can sometimes be traced back to a person, so hide anything you don't need instead of masking it.
Which columns does Fileshape flag automatically?
Names, addresses, dates of birth, emails, phone numbers, account and card numbers, IBANs, PAN, Aadhaar, SSN and UPI IDs. It checks the header and the values, and you can override every suggestion.
Will the AI's totals still be right after masking?
Yes, if you only mask identifiers. Amounts, dates and categories are left alone, and a masked identifier always comes out the same, so grouping still works.
Does my file get uploaded to Fileshape to do this?
Not with Hide · Mask · Shrink. The file is read in your browser and you download the result. With Ask AI, only the columns you share or mask are uploaded.
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-23