Dashboard

Redact a Screenshot Before You Send It to AI

How to redact a screenshot before sending it to AI: why black boxes and crops can fail, and the re-capture habit that removes the data instead.

Cecilia Iona
Cecilia Iona
Senior Editor, AI & Product
13 October 20261 min read

To redact a screenshot before sending it to AI, do not edit the screenshot. Take a new one that never contains the sensitive part. Editing is where redaction fails, and it fails in three distinct ways: the black box can sit on a layer above intact pixels, the crop can leave the original bytes in the file, and the model can read the parts you forgot were visible.

That sounds paranoid for a support chat. It is not paranoid for a screenshot that contains a customer's address, an API key in a terminal pane, or a browser tab strip that names an internal tool.

Failure 1: the box is a layer, not an erasure

Many annotation tools draw on top of the image and save the drawing as a separate object rather than replacing pixels. This is normal in PDF annotation and in some design tools. Anyone who opens the file in an editor that understands those layers can move the box.

The test takes ten seconds: open your redacted file in a different program than the one that made it. If the black rectangle can be selected, dragged or deleted, it is a sticker, not a redaction.

Exporting to a flat format fixes the layer problem specifically. Save as a flattened PNG or JPEG, then reopen the exported file and confirm the box is now part of the picture.

Failure 2: the crop that did not shorten the file

Cropping feels like the safest edit because the pixels are simply gone. They are gone only if the editor rewrites the whole file.

The clearest documented case is the bug researchers named aCropalypse, tracked as CVE-2023-21036, in the Markup editor on Google Pixel phones. The edited image was written over the original without truncating the file, so the tail of the original image remained and could be recovered. SecurityWeek's write-up notes that one of the researchers recovered a full postal address from a cropped screenshot, that the recovery is partial but substantial, and that Google patched it in the March 2023 Pixel update. Similar behaviour was reported in Windows snipping tools.

Patched software does not repair files already shared, and the general lesson outlives the specific bug: a crop is an edit that depends on the editor doing the right thing. A fresh capture depends on nothing.

The same reasoning applies to the metadata travelling alongside the image, which is a separate problem with the same shape, covered in stripping photo metadata before uploading to AI tools.

Failure 3: everything else in the frame

This is the common one, and no tool warns you about it. A full-window screenshot routinely carries:

  • Browser tabs naming internal systems, clients or unreleased projects

  • A URL containing a customer id, a session token or a staging hostname

  • Notification banners from email or chat, with a sender name and a subject line

  • The macOS menu bar or Windows taskbar, showing which tools your company uses

  • A terminal scrollback with a key in an environment variable from three commands ago

  • A sidebar with real customer names in a list behind the thing you meant to show

A model reads all of it. That is the point of sending an image rather than text, and it is covered from the useful side in prompting AI with a screenshot. The same capability means an accidental inclusion is not merely stored, it is interpreted.

How to redact a screenshot before sending it to AI

  1. Close or move anything you do not want captured, including notification banners.

  2. Capture a region, not the window or screen. On macOS that is Shift+Command+4, on Windows the Snip rectangle mode.

  3. If the sensitive value is inside the region you need, change the value before capturing: log in to a demo account, replace the customer name with a placeholder, open the file with dummy data.

  4. If you must edit, flatten on export and reopen the exported file to inspect it.

  5. Look at the final image once more, at full size, reading it as a stranger would.

Step 3 is the one people skip and the one that actually solves the problem. Redaction removes information from a picture. Re-capture means the information was never in the picture.

When a region capture is not enough

Some things cannot be cropped away, like an error message that includes a token, or a log line that is only meaningful in full. For those, paste text instead of an image and edit the text, because text is far easier to check than pixels. Replace the secret with a clearly fake placeholder of the same shape, for example sk-REDACTED-0000, so the structure is preserved and the value is not.

If the secret has already been sent, rotate it rather than deleting the chat. Deleting a conversation is housekeeping, not containment, and the gap between the two is covered in what happens when you delete your AI chat history. When the exposure involves someone else's data, the response process is in what to do if an employee pastes confidential data into AI.

Whether the content is retained or used for training at all depends on the tool and the plan, which is worth establishing once for the tools you use, as described in how to check if an AI tool trains on your data. The wider set of exposure risks for small teams is collected in the AI risks guide.

FAQ

Does blurring work better than a black box?

Only if it is flattened, and only if it is heavy. Light blur on short known-format text, such as a six-digit code or a postcode, can sometimes be reversed by guessing candidates and comparing. A solid filled shape on a flattened export is more predictable than any blur.

Is it safer to photograph my screen with a phone?

It avoids the layer and file-truncation problems, and it adds phone photo metadata including, by default, location. If you do this, check what the photo file carries before sending it.

Can I just tell the model to ignore the parts I did not mean to share?

No. The instruction does not unsee the image, and the image is what was transmitted. Treat anything visible in a sent screenshot as disclosed.

What about screenshots in bug reports to vendors?

Same rules, and the stakes are often higher because bug reports get attached to tickets that many people can read. Capture a region from a non-production account wherever the bug can be reproduced there.

How did this land?

About the author

Cecilia Iona
Cecilia Iona

Senior Editor, AI & Product

Cecilia leads the Swarmz editorial desk. She has spent a decade turning complex AI and product topics into writing people actually finish, and she owns the blog's quality bar.

Share

Get the next post in your inbox

One email a month. Product updates, engineering posts, and the best of Built with Swarmz.

I agree to receive emails about AI building tips and Swarmz product news. Unsubscribe any time.