How to Redact a Screenshot on Mac Safely
Blur and light pixelation can be undone. How to redact a screenshot on Mac with an opaque box and find API keys, emails and card numbers automatically.
GuideUpdated 10 min read
On this page
To redact a screenshot on a Mac safely, cover the secret with a fully opaque box. Blur and light pixelation are not safe. With the built-in tools, open the screenshot in Markup (click the floating thumbnail after you take it, or open the file in Preview), then draw a rectangle with a solid black fill.
In Pixfinch, press B in the editor for the Redact tool, which draws an opaque Solid Box by default. You can also press ⇧⌘R (Shift-Command-R) to find and cover email addresses, API keys, card numbers and other secrets in one step.
After that, check that the unredacted original isn't still on your clipboard, on your Desktop or in a capture history.
Why blurring isn't safe for secrets
Blur doesn't remove information. It spreads each pixel's color over its neighbors, and much of the original pattern survives. Text is easier to recover than most images because the possibilities are limited: one font, one size and a small set of characters.
Someone who wants to read blurred text can render their own guesses in the same font, blur each guess the same way and keep the one that matches. An API key or card number has a known length and character set, which narrows the guessing further.
Light pixelation has the same weakness. Each block is the average color of the pixels under it. With small blocks and a short string of digits, only a few candidate strings produce that exact pattern.
An opaque box replaces the pixels underneath with a flat color, so there is nothing left to reconstruct. Watch for covers that only look opaque:
- Shapes with a semi-transparent fill or reduced opacity.
- Highlighter strokes, which are see-through by design.
- Freehand scribbles that leave gaps between strokes.
- Boxes that cover the middle of a line but leave the tops or bottoms of letters showing.
Redact a screenshot with built-in Markup
Markup is built into macOS and is enough for an occasional screenshot. You can reach it from the screenshot thumbnail or from Preview.
From the screenshot thumbnail
- Take the screenshot, for example with ⌘⇧4 (Command-Shift-4) and a drag.
- Click the thumbnail that appears in the corner of the screen. It opens in Markup.
- Click the Shapes button and choose the rectangle.
- Drag the rectangle over the text you want to hide. Make it larger than the text on every side.
- Click Fill Color and choose black. Set Border Color to black too.
- Repeat for every secret in the image, then click Done.
If no thumbnail appears, the option is off. Press ⌘⇧5 (Command-Shift-5), open Options and turn on Show Floating Thumbnail.
From Preview
- Open the screenshot in Preview.
- Choose View › Show Markup Toolbar.
- Draw rectangles with a solid black fill over each secret, as above.
- Choose File › Export to save a redacted copy, and share that copy.
Exporting a copy is cleaner than editing the original. When you save over a file in Preview, macOS can keep earlier versions of it (File › Revert To), so the unredacted version may still exist on your Mac.
Apple notes that once you save an annotated image file, you can't edit, move or delete the annotations. For a redaction, that's what you want.
What Markup can't do for you
Markup is manual. You have to spot every email address, token and account number yourself, including the ones in a browser address bar or a terminal line you didn't notice.
Cover text with an opaque box in Pixfinch
Pixfinch, our screenshot tool, has a dedicated Redact tool. Its default style can't be reversed, and you don't have to set a fill or opacity yourself.
- Take a capture, for example Capture Area with ⌃⇧4 (Control-Shift-4). Pixfinch's shortcuts don't replace the macOS ones.
- Hover over the Quick Access card and click Annotate to open the editor. To redact a screenshot you already have, choose Open Image… (⇧⌘O) from the Pixfinch menu-bar icon, or drop the file on the icon.
- Press B, or click Redact in the tool dock under the canvas.
- Check that the style in the bar above the dock is Solid Box.
- Drag over each secret, leaving some margin around the text.
- Click Copy ⌘C to copy the result and close the editor, or Save ⌘S to write a file to your save folder.


The Redact tool has three styles. Only one of them is meant for secrets.
| Style | What it does | Use it for secrets? |
|---|---|---|
| Solid Box (default) | An opaque dark box (#1C1C1E) with faint hatching | Yes. It can't be reversed. |
| Pixelate | Large, randomized blocks, hardened against reversal | Solid Box is the safer choice |
| Blur | Shown as "Blur (not for secrets)", with Smooth / Secure and strength 1–9 | No. It carries an orange "NOT FOR SECRETS" tag. |
The editor's help text puts it plainly: "Only Solid Box can't be reversed. Blur is for softening, not for secrets." Use Blur to soften a busy background, never to hide anything.
If you redact most of your captures, have the editor open after each one: go to Settings › General › After capture and set Then to Open annotation editor.
Find emails, keys and card numbers automatically
The editor's Auto-Redact button (⇧⌘R) reads the image on your Mac and covers every match it finds in one step.
- Open the capture or image in the Pixfinch editor.
- Click Auto-Redact in the action bar, or press ⇧⌘R. It shows "Scanning…" while it reads the image.
- Read the confirmation, for example "Redacted 1 API key or secret, 2 email addresses and 1 phone number". If nothing matched, it says "No sensitive text found".
- Look over the result. Press B and cover anything it missed by hand.
- Click Copy ⌘C or Save ⌘S.


Auto-Redact looks for:
- API keys and tokens:
sk-…keys, Stripe live and test keys (sk_/rk_), AWS access key IDs (AKIA…,ASIA…), GitHub (ghp_,github_pat_), GitLab (glpat-), Slack (xox…-), Google (AIza…), JWTs, PEM private keys and other long prefixed keys. - Labelled secrets such as
password: …orAPI_KEY=…. Only the value is covered, so the label stays readable. - URLs with credentials: secret query parameters and
user:pass@logins. - Email addresses and phone numbers.
- Card numbers (13–19 digits, checked with the Luhn algorithm) and IBANs (checked with mod-97), which cuts down on random long numbers being covered.
- IPv4 and IPv6 addresses.
A few things to know:
- Auto-Redact uses Solid Box unless you change Settings › Capture › Redaction › Redact with to Pixelate. It never uses Blur.
- The whole pass is one undo step, so ⌘Z (Command-Z) removes every box it added.
- It only finds the types listed above. It doesn't look for names, street addresses, faces or customer IDs, and you can't add your own rules. Cover those with the Redact tool.
- It can only cover text it can read, so very small or low-contrast text may slip through. Always look over the result.
- It runs when you click the button, not on every capture.
- The scan runs entirely on your Mac. Nothing is uploaded.
Redact image files with Shortcuts
Pixfinch adds a Redact Sensitive Text action to the Shortcuts app. It takes an image, covers detected secrets with solid boxes and returns a PNG named "… (redacted)". It suits a repeated job, such as a shortcut you run on the same kind of file each week. It finds only the types listed above, so check the output before you share it.
Which method to use
| Method | Finds secrets for you | Cover can't be reversed | Works on existing files | Cost (as of November 2026) |
|---|---|---|---|---|
| Markup (thumbnail or Preview) | No | Yes, with a solid fill | Yes | Free, built in |
| Pixfinch Redact tool (B) | No | Yes, with Solid Box | Yes, via Open Image… | MacSuite license, $349 one-time |
| Pixfinch Auto-Redact (⇧⌘R) | Yes, for the listed types | Yes (Solid Box by default) | Yes | MacSuite license, $349 one-time |
| Shortcuts "Redact Sensitive Text" | Yes, for the listed types | Yes (always solid boxes) | Yes, image files | MacSuite license, $349 one-time |
Pick Markup if you redact now and then and can check each image by eye. Pick Pixfinch if you share screenshots of code, dashboards, logs or support tickets every day, where one missed key is costly and scanning by hand is slow. Pixfinch is part of MacSuite; you can try it free for 7 days.
Make sure old copies don't leak
Redacting the image you share isn't enough if an unredacted copy is sitting somewhere you might paste, sync or send by accident.
With Pixfinch
- Clipboard. Pixfinch copies each capture to the clipboard by default, so the unredacted original is there right after you take the shot. Clicking Copy ⌘C in the editor replaces it with the redacted version. Don't paste until you've copied from the editor. If you use a clipboard manager, the original may also be in its history.
- Save folder. If Save to folder is on under Settings › General › After capture, the unredacted original was saved when you took the shot (to your Desktop by default). Saving from the editor writes a new file, so delete the original yourself.
- Closed cards. Pixfinch remembers the last 5 closed Quick Access cards until you quit, and Restore Closed Card (⌃⇧Z) can bring one back. Quit Pixfinch if you don't want the original capture to be restorable.
- Capture History. When you copy, save, pin or share a capture that has redactions, Pixfinch replaces its History entry with the redacted version. The first time, the confirmation adds "History now keeps the redacted copy", and the frame shows REDACTED in History. If you close the editor and choose Discard, nothing was copied or saved, so History still holds the original. In that case open Capture History…, right-click the frame and choose Delete from History.
- Text in History. Pixfinch reads each capture's text for search and replaces detected secrets with "•••" before anything is stored. If you hid something Auto-Redact doesn't detect, such as a name, use Delete from History to be sure no trace stays.
- Documents. When you save a
.pixfinchdocument, Pixfinch burns the redactions into the stored pixels, so the hidden text can't be recovered by moving a box. - Opened images. Open Image… never changes the original file; your edits are saved as a new file. If the original shouldn't exist, delete it.
With the built-in tools
- Check the Desktop (the default save location for macOS screenshots) for the unredacted original, and delete it if you exported a copy.
- Empty the Trash afterwards if the file shouldn't stay on the Mac.
- If your Desktop folder syncs to iCloud Drive, the original was synced too, so delete it rather than leaving it in place.
A checklist before you share
- Every secret is under an opaque box, not blur, a highlighter or a semi-transparent shape.
- Each box covers the full height of the letters, including tops and tails, with a margin.
- You checked the less obvious places: browser address bars, tab titles, notifications, terminal history, file paths, email headers and the menu bar.
- The same value isn't visible twice, for example a key in a form field and again in a URL.
- You're sharing the redacted file or the redacted clipboard contents, not the original.
- The unredacted original is deleted, or you know where it is and that it stays private.
- As a last check, open the exported image in Preview and try to select text in the covered areas with Live Text. If anything highlights, part of it is still readable.
If it doesn't work
- Auto-Redact says "No sensitive text found", but there is a secret. The text may be too small or unclear to read, or it isn't a detected type (a name, for example). Cover it with the Redact tool (B).
- Auto-Redact says "Sensitive text is already redacted". What it can detect is already covered. Look over the image for anything it doesn't detect.
- You pasted the image and the secret is still visible. The clipboard still held the original capture. Go back to the editor, click Copy ⌘C, then paste again.
- The box isn't opaque. In Pixfinch, check the style is Solid Box, not Pixelate or Blur. The faint hatching on a Solid Box is normal; the box is still opaque. In Markup, check the shape has a solid fill color, not just a border.
- There's an unredacted copy on your Desktop. Either Save to folder is on in Pixfinch or macOS saved the screenshot there. Delete the original after you've saved the redacted version.
- Pixfinch won't open your file. Pixfinch opens PNG, JPEG, HEIC, TIFF, WebP, GIF and BMP images. Export other formats as one of these first.
FAQ
Is Pixfinch's Pixelate style safe for secrets? It uses large, randomized blocks that are hardened against reversal. Still, only Solid Box can't be reversed, so use it for passwords, keys and account numbers.
Does Auto-Redact send my screenshot anywhere? No. Pixfinch reads the image on your Mac and uploads nothing. See Pixfinch and your privacy for what is stored and where.
Can Pixfinch redact every capture automatically? Not on capture. Auto-Redact runs when you click it or press ⇧⌘R. To redact image files without opening the editor, use the Redact Sensitive Text action in Shortcuts.
For every Redact tool option and setting, see Redact sensitive information. To add arrows, text and highlights after redacting, read how to annotate a screenshot on Mac. If you're still choosing a screenshot app, see the best screenshot apps for Mac.