Is it safe to upload a PDF to ChatGPT or Claude?
Usually yes, as long as you have thought about two different risks. The first is what happens to your document once it leaves your computer. The second is what the document can do to the AI's answer. Most advice covers only the first.
Risk one: where your document goes
When you upload a file to an AI assistant, it is sent to and processed on the provider's servers. Before uploading anything sensitive, check four things in the provider's own settings and documentation, because they differ between providers and between free, paid and business plans:
- Training. Whether your conversations and files may be used to improve the models, and where the setting to turn that off is.
- Retention. How long files and chats are stored, and whether deleting a chat deletes the file.
- Who can see it. Whether shared chats, team workspaces or project folders expose the file to other people.
- Your own obligations. Whether your employer, your client or a law such as a data protection rule allows that document to be sent to a third party at all.
If the answer to the last point is no, the other three do not matter. Remove or mask personal data, account numbers and client names first, or do not upload the file.
Risk two: what the document does to the AI
An assistant treats the text of your document as input. If the document contains instructions, the model may follow them instead of yours. This is called indirect prompt injection, and a PDF is a convenient carrier because it can hold text that is invisible on the page: white on white, microscopic, behind an image or outside the page edge.
The result is rarely dramatic. It is more often a quietly wrong answer: a CV summarised as an outstanding match, an invoice reported as already approved, a contract summary that leaves out a clause. The risk is highest with documents written by someone who benefits from the outcome, such as applicants, suppliers and counterparties, and with assistants that can take actions, such as sending email or browsing.
Images can carry hidden instructions too
The same problem exists in pictures. Assistants that can read images will read any text they find in one, and that text does not have to be obvious to you. Researchers have shown several ways to hide instructions in an image:
- Low-contrast text. Words written in a colour almost identical to the background, which a person overlooks and a model can still read.
- Text that appears when the image is resized. Many AI systems shrink large images before analysing them. An image can be prepared so that a message only becomes legible after that shrinking.
- Metadata. Fields stored inside the file, such as descriptions, comments and EXIF data, can hold text that some tools pass along with the picture.
- Tiny text in a corner of a screenshot or scanned page, easy to miss at normal zoom.
RinsePDF accepts images as well as PDFs, and helps in three specific ways. It rebuilds every image from its pixels, so metadata, comments and EXIF data, including GPS position, are dropped. It re-encodes the picture, and usually resizes it, at a fixed quality, which changes the fine pixel pattern that resize-based tricks depend on; this lowers that risk but is not a guarantee. And the plain text output shows you every word that OCR could read in the image, so faint or tiny text you had not noticed appears in front of you before any AI sees it.
What it cannot do is erase text that is part of the visible picture. Low-contrast or very small words stay in a clean PDF, because they are in the pixels. The reliable defence there is to choose plain text output, read it, and delete anything that does not belong before you share it.
A short routine before you upload
- Ask who wrote it. Your own notes need less care than a file from a stranger.
- Strip what the AI does not need. Personal data, signatures, account numbers.
- Remove what you cannot see. Convert the file into a copy that contains only what is visible on the page. RinsePDF does this in your browser: it turns each page into a picture and rebuilds a clean PDF or plain text, leaving behind hidden text, scripts, attachments and metadata. It can also show you what hidden text the original contained.
- Prefer plain text when layout does not matter. You can read exactly what the model will receive.
- Check the answer against the page. Especially names, amounts, dates and any recommendation.
What this does not solve
Cleaning a file removes hidden content. It does not remove instructions that are printed visibly, it does not make a confidential document suitable for upload, and it does not detect malware. No tool can guarantee how an AI system will behave. Keep a person responsible for any decision that matters.
The short answer
Uploading a PDF to a reputable AI assistant is reasonable for most everyday documents. Check the provider's data settings once, keep confidential material out, and for files you did not write yourself, upload a clean copy instead of the original.