How to redact a TFN before you put a document into AI
· Updated
![A notice of assessment, TFN labelled Fictional ATO notice of assessment with the TFN swapped for the label [TFN_1] before the document goes into an AI tool, income left in](/guias/en-au/redact-tfn-notice-of-assessment-before-ai.webp)
Joaquín Trapero in AI and privacy expert, and founder of Nonimo.
A tax file number turns up in more paperwork than people expect: the notice of assessment sent as proof of income, a payroll export, the ATO letter you photograph and ask a chatbot to explain. The number itself almost never helps answer the question.
This guide is about taking it out properly, before any of that reaches an AI tool. The TFN is one item on a longer list, and the identifiers worth removing before AI covers the rest.
Delete the nine digits and put a label such as [TFN_1] in their place, then search the file for the number in every format. A black box over a PDF isn't redaction: the digits stay underneath and come back with copy and paste. The ATO itself tells people not to give AI their TFN.
How to redact a TFN so the digits are really gone
The Federal Court’s guide to redacting electronic documents sets a plain standard: replace the text with [Redacted]. It warns against black shapes and white text in Word, because both hide the words without removing them, and copy and paste brings them back.
For an AI prompt I prefer a numbered label. With two employees in one prompt, [TFN_1] and [TFN_2] keep them apart, so the reply lines up with the right person. We tested the drawn-box problem on a tax letter in our guide to redacting a PDF.
Four ways to hide a TFN, and which survive copy and paste
The test: select the page, copy, paste into Notepad, search for the digits.
| Method | Digits still in the file? | Fit for an AI prompt? |
|---|---|---|
| Black box drawn over the number | Yes, in the text layer | No: the model reads text, not the picture |
| Font changed to white | Yes | No, for the same reason |
| [Redacted] | No | Works, but two redacted TFNs look identical |
| [TFN_1], [TFN_2] | No | Yes: each person keeps a label of their own |
First three rows from the Federal Court's guide to redacting documents in electronic form. The last row is our recommendation for prompts.
One TFN can sit in a file as 482 193 756, 482193756 and 482-193-756 (made up, and nobody’s). Searching one shape misses the others, and an export’s header may not say “TFN” at all. The Word redaction guide has wildcard patterns that catch the spaced and unspaced forms together.
The court’s own final check is the one I’d copy: paste the redacted text into a plain text editor and search it. If the digits show up there, they’ll show up for a chatbot too.
Where your TFN sits on a notice of assessment and other ATO paperwork
The ATO lists where you’ll find your TFN: its app and online account, your notice of assessment, some ATO letters, your employer’s income statement or payment summary, and your super statement. I read it as a list of the documents most likely to be photographed and sent somewhere.
Where a TFN appears, by document
Check these before any of them is attached, uploaded or pasted.
| Document | Who produces it | Worth knowing |
|---|---|---|
| Income tax notice of assessment | ATO, after you lodge | Often asked for as proof of income; the TPB treats sending it unredacted by email as something that needs extra care |
| ATO letters, such as a statement of account | ATO | The ATO says "some" of its letters carry it |
| Income statement or payment summary | Your employer | Also the start of most payroll files |
| Superannuation account statement | Your fund | Sits beside your member number |
| ATO app, ATO online services via myGov | ATO | A screenshot carries whatever is on screen |
Documents from the ATO's pages What is a tax file number? and Lost or stolen TFN (both last updated 22 June 2026). The notice of assessment note is from the TPB's TFN webinar answers.
Visa applicants and renters ask online how to hide the TFN on a notice of assessment. The OAIC’s TFN page answers them: if a document you’ve been asked for includes your TFN, you may cross it out before handing it over, even to someone allowed to collect TFNs.
A photographed notice is the hardest case, because the number is part of an image. Crop it or cover it in the photo before it goes anywhere; what AI tools keep from the photos you upload explains why a picture lasts longer than the chat.
Is it safe to give out your TFN? Who can lawfully ask for it
Fewer people can ask than you’d think. Section 8WA of the Taxation Administration Act makes it an offence to request someone’s TFN unless a tax law or certain other Commonwealth laws provide for it, or the asker acts on your behalf, like your tax agent.
The same section has the exception that matters for redaction. Asking for a copy of a document with your TFN on it isn’t an offence, as long as you aren’t prevented from removing the number.
So a rental application or a visa file can ask for your notice of assessment. The carve-out only holds while you’re free to take the TFN off first.
Someone wants your TFN. Should they get it?
Who is asking?
From the ATO's list of legitimate reasons, the OAIC's page on your TFN, the Privacy (TFN) Rule 2015, s 7(3), and the Taxation Administration Act 1953, ss 8WA and 8WB. Not advice on a particular request.
If a property manager asks for the number itself rather than a document, I’d say no and offer the redacted notice. What a rental file usually carries, and what an agency should keep, is set out in what real estate agents should keep from an application.
Your TFN and ChatGPT: what the ATO says about AI
The ATO’s misinformation page, last updated 1 June 2026, has a short section on using AI for tax and super. Under “Protect your information” it’s blunt: do not share your personal information with AI. The examples are your name, tax file number, bank details, phone number and address.
I wouldn’t paste a whole notice of assessment to ask about one figure. A deduction or withholding question needs the year and the amount. What the provider keeps of your chat is laid out in how OpenAI handles what you paste.
Is there a TFN in what you're about to paste?
Paste a paragraph from a tax letter, a payslip or a prompt.
Runs in your browser and sends nothing. It flags the common ID and account numbers; names and addresses are yours to check. NDIS numbers are on the list too, which matters for NDIS providers.
The ATO’s warning is about every assistant, not one brand. Copilot works on the documents you open with it, so what Copilot does with your files is worth five minutes if your tax folder lives in OneDrive.
Payslips carry more than the TFN. A union fees deduction shows trade union membership, which is sensitive information under the Privacy Act, with tighter rules again.
If your TFN has already gone into a chatbot
Deleting the conversation is worth doing, but don’t count on it as the fix: deleting ChatGPT history works on OpenAI’s timetable, not yours.
A TFN went into an AI tool: three moves
Phone number, hours and security measures from the ATO's page Lost or stolen TFN, last updated 22 June 2026.
Whether a client’s TFN in a prompt is a notifiable breach depends on the facts, and our guide on client data in ChatGPT as a data breach works through the test.
What the OAIC TFN Rule asks of anyone holding a TFN
The Privacy (Tax File Number) Rule 2015 is legally binding, made by the Privacy Commissioner under section 17 of the Privacy Act. It covers individuals’ TFN information, meaning a TFN linked to the person, and a breach is an interference with privacy.
It binds every file number recipient. Section 11 of the Privacy Act defines that as anyone in possession or control of a record with TFN information, lawfully or not.
Section 18 then binds them to the Rule with no turnover test, so a two-person office running payroll is in. How that sits beside the small business exemption is covered in our Privacy Act guide to AI tools.
The parts of the TFN Rule that touch an AI prompt
| Section | What it says | In practice, before a prompt |
|---|---|---|
| 8, collection | Ask for TFNs only for a tax, super or personal assistance purpose, and say declining isn't an offence | Nothing in a chatbot workflow needs a fresh TFN |
| 9, TFNs provided incidentally | The person may remove the TFN; if they don't, the recipient mustn't use or disclose it | A TFN that arrived by accident stays out |
| 10, use or disclosure | Only for a purpose under tax, super or personal assistance law | A prompt is rarely that purpose: take the number out |
| 11, security and disposal | Reasonable steps against misuse and unauthorised disclosure; destroy or permanently de-identify when no longer needed | Old exports get deleted, not uploaded |
| 12, staff training | Staff who handle TFNs know the limits and the penalties | The no-TFN-in-AI habit goes in writing |
Privacy (Tax File Number) Rule 2015 (F2015L00249), sections 8 to 12. The right-hand column is my reading.
The criminal side is section 8WB of the Taxation Administration Act. Recording someone else’s TFN, using it linked to them, or passing it to a third person is an offence unless an exception applies. The maximum is 100 penalty units, two years’ jail, or both, as under section 8WA.
Section 11(2) of the Rule asks for TFN information to be destroyed or “permanently de-identified” once it’s no longer needed. A label you can reverse isn’t that: it keeps the link on your side, which is the line between de-identified and pseudonymised data.
That doesn’t bother me for a prompt, because the point is to keep the number off the provider’s side, not to destroy your own records. Masking services make the same trade, as Protecto’s unmask step shows.
Tax agents, bookkeepers and brokers: TFNs in email, the cloud and AI
Of everything official on this, I find the TPB’s webinar answers on protecting clients’ TFNs the most practical. It doesn’t recommend sending or receiving TFNs by email, and where lodgement software emails draft returns with the TFN, it suggests redacting the number or sending an encrypted or password-protected attachment.
A cloud storage provider is a third party, it adds. TPB(GS) 55/2026, issued 22 July 2026, applies that to AI: entering client information can be a disclosure, depending on configuration, and TFNs bring the TFN Rule on top. A signed engagement letter with an AI clause carries the permission.
What applies to your practice
Code item 6 and TPB(GS) 55/2026. Client permission before client information goes into an AI tool that counts as a third party. For a client who wants an unredacted notice by email, the TPB says validate the address, use an encrypted or password-protected attachment and keep a record. More on the routine on our page for accountants.
You're a file number recipient. When an employee holds the record in the course of their job, the Privacy Act treats the employer as the recipient. Section 12 of the Rule wants every staff member who touches TFNs to know the limits, so the payroll officer's AI habits are the business's problem.
AFCA asks members to redact TFNs and government related identifiers before sending documents. Its 21 April 2023 notice says they aren't reasonably necessary for almost all complaints, and sending them anyway may breach a member's privacy obligations. The same files often hold insurance details, as our page for insurance brokers shows.
TPB, Protecting your clients' TFNs (issued 13 May 2025, last modified 6 February 2026); TPB(GS) 55/2026; Privacy Act 1988, s 11(2); TFN Rule, s 12; AFCA member news, 21 April 2023.
The simplest arrangement keeps the TFN on the practice computer. If [TFN_1] replaces the digits before text leaves, the AI provider never receives the number; permission still covers everything else. A legal practice handling an estate faces the same choice, as our page for law firms explains.
Where the TFN can be stopped, for practice software
Swap it in each request
- A label replaces the digits before the call leaves
- A PII redaction proxy on your own server
Block the request
- Nothing with a tax ID goes out
- Cloudflare's AI Gateway has a free block
Keep the model in-house
- No outside provider at all
- A model on your own hardware
Swapping keeps the question answerable; blocking stops the work until someone edits the text.
A payroll question, before and after Nonimo
Can you check the PAYG withholding for two new starters at the Yarrabool depot? Starter 1: TFN 000 000 000, full time from 3 March, no study loan. Starter 2: TFN declaration to follow, casual, born 14/03/1979, mobile 0491 570 110. Both declarations were emailed from payroll@example.com on Friday.
Can you check the PAYG withholding for two new starters at the Yarrabool depot? Starter 1: TFN [TFN_1], full time from 3 March, no study loan. Starter 2: TFN declaration to follow, casual, born [BIRTH_DATE_1], mobile [PHONE_1]. Both declarations were emailed from [EMAIL_1] on Friday.
We ran this message through Nonimo on 1 October 2026; the "After" line is its output as it came. Everything is invented: Yarrabool is a made-up town, the TFN is all zeros, the mobile is from ACMA's list for creative works and the email uses a reserved domain.
What stayed is what the question turns on: full time or casual, the start date, the study loan. The labels go back to the real values when the reply comes back into the app, so nobody retypes them.
Redacting a tax return or payroll file in Word, Excel and PDF
Every format hides the number in its own place. Hidden text in Word, a hidden sheet in Excel and speaker notes in a slide deck all survive a quick look on screen, and all of them can reach the model with the file.
Where a TFN survives, by file type
| File | Where the TFN hides | Guide |
|---|---|---|
| Word | Headers, footers, comments, text formatted as hidden | Word |
| PowerPoint | Speaker notes, hidden slides | PowerPoint |
| Excel | Its own column, hidden sheets, rows or columns | Excel |
| CSV export | An unspaced column, often without "TFN" in the header | CSV |
| PDF and scans | Under a drawn box, or inside a picture of the page |
From the tests in our format guides.
For a payroll workbook, unhide everything first, then delete the TFN column from the copy you send. For a question about one employee, I wouldn’t send the workbook at all: paste the one row, labelled.
After the number is gone, clear the file’s properties, which can carry an author’s name and earlier edits. Removing metadata from a PDF or Word file takes a minute and is easy to forget.
![A tax file number as a label A made-up tax file number struck out and shown as [TFN_1]; passing on someone's TFN without an exception carries up to two years' jail](/guias/en-au/tfn-label-taxation-administration-act-offence.webp)
Before a tax document goes into AI: the TFN check
The one thing I’d hold a practice to is that no TFN leaves the computer it already lives on. Everything else about a prompt is negotiable; that number has its own Rule and its own offence, and the answer never depended on it.
Before you paste or upload a tax document
Tick what you've done for this one.
Ticked: 0 of 7
Hold it back. The copy-and-paste test alone catches most misses.
Nearly there. The unticked box is usually where the number survives.
Ready. The question goes out without a TFN in it.
My checklist, drawn from the Federal Court's redaction guide, the ATO's AI advice and the TPB's TFN answers.
For a single message, that list and the identifiers worth removing will do.
For a bookkeeper or tax practice doing this daily, Nonimo swaps the TFN for a label on the practice computer before a prompt or file reaches the AI tool, and puts the digits back in the reply on your screen.
Your text never reaches us, as our security page sets out. A TFN that has already leaked from a practice is a job for a lawyer who has seen the facts, not for this page.
Sources
- Privacy (Tax File Number) Rule 2015: made under s 17 of the Privacy Act; sections 5, 7, 8 to 12.
- Taxation Administration Act 1953: ss 8WA and 8WB, the exceptions and the penalty.
- OAIC, Your tax file number: who can ask, crossing out a TFN, no use to confirm identity when renting or buying a car.
- OAIC, The Privacy (TFN) Rule 2015 and the protection of TFN information: who is a TFN recipient.
- ATO, Protect yourself from misinformation and disinformation: do not share personal information, including your TFN, with AI.
- ATO, What is a tax file number?: where to find your TFN and who it’s for.
- TPB, Protecting your clients’ TFNs: email, redaction, encrypted attachments, cloud providers as third parties.
- TPB(GS) 55/2026, The use of Artificial Intelligence and the Code of Professional Conduct: client permission before AI use; the TFN Rule on top.
- AFCA, Redacting TFNs and government related identifiers: members asked to redact before disclosing to AFCA.
- Federal Court of Australia, Guide to redacting documents in electronic form: [Redacted], no black shapes or white text, the plain-text check.
Accessed 7 November 2026.
Common questions
How do I redact a TFN?
Delete the nine digits from the text and type a label in their place. Then copy the page into a plain text editor and search for the digits. A box drawn on top doesn't count.
How do I redact a tax return?
Work on a copy and delete the TFN from the text, not just from view. Search for it spaced, unspaced and hyphenated, check headers and attachments, then clear the file's properties before it goes anywhere.
What is the OAIC TFN Rule?
It's the Privacy (Tax File Number) Rule 2015, binding on anyone holding TFNs. It limits collecting, using and disclosing them to tax, super and personal assistance purposes, and adds security, disposal and staff training duties.
Is it safe to give out my TFN?
Only to bodies with a legitimate reason to ask. The ATO, your employer, bank, super fund and university are on the ATO's list. A landlord or car dealer can't use it to confirm who you are.
Should I be careful what I tell ChatGPT?
Yes, and tax paperwork is where it bites. The ATO says not to share personal information with AI, and names your TFN, bank details, phone number and address. Ask the question without them.
Can AI prepare my tax return in Australia?
It can explain things, but check every answer before you lodge. The ATO warns AI can be wrong, outdated or about the wrong year, and says to check with the ATO or a tax professional.
Can I send a TFN by email?
The TPB advises tax practitioners not to. It doesn't consider email secure for TFNs, and suggests a secure portal, an encrypted or password-protected attachment, or redacting the number first.