Auto-redact API keys, emails and cards in a Mac screenshot
Cover API keys, emails, card numbers and IPs in a Mac screenshot with one click in Pixfinch. See what it finds, what it misses and how to check.
GuideUpdated 7 min read
On this page
You took a screenshot of a terminal or a dashboard, and now you need to send it without leaking an API key, an email address or a card number. Doing it by hand with boxes works, but it is easy to miss one line. This guide covers the one-click route, what it catches and what it doesn't, and how to make sure the unredacted original never leaves your Mac.
Why a manual redaction often fails
Most leaks from screenshots come from a few repeatable mistakes:
- A line was missed. Terminals and dashboards hold dozens of tokens, emails and IPs, and one stays visible.
- The cover was reversible. A blur or a semi-transparent highlight can sometimes be undone. Only an opaque box can't.
- The original got shared. The unredacted file stayed on the Desktop, or the unredacted capture was already on the clipboard.
Pixfinch's Auto-Redact addresses the first problem. The settings in the third fix below address the third. The Redact tool's Solid Box style addresses the second.
Redact a screenshot with Auto-Redact
Pixfinch is a menu-bar app for macOS 14 Sonoma or later. Capturing needs Screen Recording permission; see Screen Recording and other permissions if macOS hasn't asked yet.
Fix 1: redact a new capture
- Press ⌃⇧4 (Control-Shift-4) and drag over the area. That is the default Capture Area shortcut; check Settings › Shortcuts if yours differs. Installs that ran a pre-release version keep the older ⌥⇧ shortcuts.
- When the Quick Access card appears in the corner, click Annotate. The card closes after 6 seconds by default, and hovering over it pauses the timer.
- In the editor, click Auto-Redact in the top bar, or press ⇧⌘R. In a narrow window the bar shows icons only, so hover to find it.
- Wait for "Scanning…" to finish. A message reports what was covered, for example "Redacted 1 API key or secret, 2 email addresses and 1 phone number". If nothing matched, you see "No sensitive text found".
- Zoom in and check every box and the rest of the image. Press ⌘Z to undo the whole pass.
- Click Copy (copies and closes the editor) or press ⌘S to save to your save folder. ⌘C copies and keeps the editor open.
Fix 2: redact a screenshot you already have
You don't need to recapture. Choose Open Image… (⇧⌘O) from the menu-bar menu, or drag the file onto the menu-bar icon. For an image on the clipboard, use Annotate Clipboard Image (⇧⌘V). Finder's Open With ▸ Pixfinch also works.
Pixfinch saves edits as new files and never touches the original. The original, with the secret still visible, stays where it was. Delete it, or make sure it isn't the file you attach.
Fix 3: stop the unredacted shot reaching your clipboard
To change that:
- Open Settings › General.
- Under After capture, set Then to Open annotation editor.
- Turn off Copy to clipboard.
- Leave Save to folder off (it is off by default), since it would write the unredacted file to disk.
Now the first thing you can copy or save is the version you've redacted. History keeps the capture as taken until you copy, save, pin or share the redacted version, which replaces that History entry. The entry then shows "REDACTED", and you can filter by the Redacted chip.
What Auto-Redact finds
| Category | What it matches |
|---|---|
| Credentials in URLs | Secret query parameters, user:pass@ |
| API keys and tokens | sk-…, Stripe sk_/rk_ live and test keys, AWS AKIA/ASIA…, GitHub ghp_/github_pat_, GitLab glpat-, Slack xox?-, Google AIza…, JWTs, PEM private keys, other high-entropy prefixed keys |
| Labelled secrets | The value after password: or API_KEY= (the value only, not the label) |
| Email addresses | Email addresses |
| Bank and card numbers | IBANs (mod-97 checked), card numbers of 13 to 19 digits (Luhn checked) |
| Network and phone | IPv4 and IPv6 addresses, phone numbers |
The checksum tests on IBANs and card numbers mean a random long number is less likely to be covered by mistake. The scan uses Apple's Vision text recognition, so it can only cover text it manages to read.
What Auto-Redact doesn't do
- It is manual. It does not run when you capture. You click the button or use the Shortcuts action below.
- No custom rules. You can't add your own patterns, such as an internal ticket ID or an unusual token format.
- Only the categories above. Names, faces, and anything not in the table need the manual tool.
- Only text it can read. Very small or blurry text may be missed.
Cover anything else by hand
The Redact tool (key B) covers a region you choose. It has three styles:
- Solid Box (default): an opaque box that can't be reversed.
- Pixelate: large, randomized blocks.
- Blur: marked "NOT FOR SECRETS" in the editor.
Pixfinch's own help says only Solid Box can't be reversed. Auto-Redact never uses Blur. For the automatic pass you can choose Solid Box or Pixelate under Settings › Capture › Redaction › Redact with. Leave it on Solid Box for secrets.
Check the result before you share
Press ⌘T to open Text mode. It outlines the lines of text Pixfinch can read, and lines mostly under a redaction are hidden and never copied. If a line containing a secret shows up as selectable, it isn't fully covered.
Saved .pixfinch documents and History documents always have redactions burned into the stored pixels, so reopening them later doesn't bring the secret back.
Automate it with Shortcuts
Pixfinch adds a Redact Sensitive Text action to the Shortcuts app. It takes an image and returns a PNG with solid boxes, named "… (redacted)". Pair it with Capture Screenshot (Mode: Area, Window, Full Screen or Last Area) to build a "capture and cover" shortcut. Pixfinch's after-capture settings still apply to the capture action, so the clipboard warning above matters here too.
How it compares with other options
We make Pixfinch, so weigh our view accordingly. The comparison below uses the competitor notes and ticket, as of November 2026.
| Option | Finds secrets for you | Notes |
|---|---|---|
| Pixfinch Auto-Redact | Yes, on your Mac | Button or Shortcuts action; no custom rules |
| macOS Markup / Preview | Not listed | Apple's pages list shapes, text and a magnifier, not a redaction tool |
| Xnapper | Lists one-click redaction of emails, cards, IPs and keys | Free with watermark, paid from $29.99 one-time |
| CleanShot X | Lists a secure blur | Basic $35 one-time with 1 year of updates |
| macshot | Per its project page, regex-based detection of cards, emails, SSNs, API keys and bearer tokens | Free, open source |
If you only need to hide one known value now and then, covering it in Markup or any editor is enough, as long as the cover is fully opaque and not a blur or translucent highlight. Auto-Redact pays off when screenshots are full of tokens, emails and IPs, like terminals and dashboards. If you need patterns we don't have, such as SSNs or your own token format, a tool with regex rules fits better.
Checklist before you share
- Auto-Redact ran and you read the toast.
- You looked at the whole image at full size, not just the boxes.
- Text mode (⌘T) doesn't offer any line that holds a secret.
- Anything the scan can't know about (names, faces, internal IDs) is covered with Redact (B).
- The unredacted original isn't in the folder you are attaching from.
If it doesn't work
- "No sensitive text found" but you can see a key. The key probably has no known prefix or label, or the text is too small to read. Recapture with larger text, or cover it with Redact (B).
- It covered something that isn't secret. Press ⌘Z to revert the pass and redact by hand.
- "Sensitive text is already redacted." The scan found only matches that are already covered. Nothing to do.
- The capture won't start. In System Settings, turn on Pixfinch under Privacy & Security › Screen & System Audio Recording, then use Quit & Reopen.
- A license window opens instead of a capture or an image. The 7-day trial has ended on this Mac. A MacSuite license is $349 one-time as of November 2026; see pricing.
If a real key was visible in a screenshot that has already been shared, covering it afterward doesn't un-share the original. Microsoft's documentation on secret scanning gives the standard remedy: invalidate the exposed credential and create a new one in its place. See Microsoft Learn. Do that with the service that issued the key.
If the problem persists, contact support through the support page, or use Contact Support… in Pixfinch's Help menu, which fills in version and macOS details.
Subject: Pixfinch Auto-Redact missed a value
Pixfinch version: (from About Pixfinch)
macOS version:
What I did: opened a screenshot and clicked Auto-Redact (⇧⌘R)
Message shown: (for example "No sensitive text found")
What was missed: (type of value, e.g. API key with prefix, email, IP)
Text size in the screenshot: (small / normal / large)Common questions
Is the screenshot uploaded anywhere to find the secrets?
No. Auto-Redact scans the image on your Mac, and Pixfinch has no cloud upload. See Pixfinch and your privacy.
Is Blur safe for API keys?
No. Use Solid Box. Pixfinch marks Blur "NOT FOR SECRETS" and says only Solid Box can't be reversed.
Can I run it on every screenshot automatically?
Not as a built-in setting. Use the Shortcuts action, or click Auto-Redact each time.
Can I add my own patterns?
No. Pixfinch has no custom redaction rules. Cover anything outside the categories above with the Redact tool.
Pixfinch is part of MacSuite, and you can try Pixfinch free for 7 days. More on the editor is in Annotating screenshots and Redact sensitive information.