How to Hide Sensitive Information in Screenshots Before You Share
Knowing how to hide sensitive information in screenshots comes down to three things: cover it with something fully opaque, save it so the cover becomes part of the pixels, and check the exported file before it leaves your Mac. The built-in tools can do all three, as long as you avoid semi-transparent highlighter strokes, the PDF-only Redact tool and the original copy kept in Preview's version history. This guide covers the Preview method, what to clear off the screen before you capture, and what metadata travels with the file.
How do I redact a screenshot in Preview on Mac?
To redact a screenshot in Preview, draw a rectangle over the data, set both its Fill Color and Border Color to black, and save the image so the box merges into the pixels. Redaction is the permanent removal of information from a document or image, so that nobody who receives it can read it, as opposed to just pointing at it.
- Select the screenshot in Finder and press Cmd+D, or open it and choose File > Duplicate. Captures made with keyboard shortcuts land on the Desktop by default; if yours went elsewhere, see where screenshots go on Mac.
- Open the copy in Preview and press Cmd+Shift+A (View > Show Markup Toolbar).
- Click Shapes, choose the rectangle and drag it over the email address, token or name.
- With the shape selected, click Fill Color and pick black, then click Border Color and pick black.
- Draw one rectangle per item and zoom in with Cmd+Plus to check that no letter peeks out at the edges.
- Press Cmd+S, or choose File > Export and save a new PNG.
When the sensitive part sits near an edge, cropping is cleaner than covering because it removes those pixels entirely. Drag a selection with the Rectangular Selection tool and choose Tools > Crop (Cmd+K), or use Crop in the Markup toolbar. The same Shapes, Fill Color and Crop tools open when you click the floating thumbnail right after a capture, but Apple notes that edits made in a Quick Look or Quick Actions window cannot be undone after you close it. For arrows, text and other marks, the guide to annotating a screenshot on Mac covers the full Markup toolbar.
Why is the Redact tool greyed out in Preview?
Preview's Redact tool is greyed out for screenshots because Apple built it for PDF documents, not for image files such as PNG. Apple documents Redaction Selection only for PDFs: you select text, Preview removes it from view, and the redaction becomes permanent once you close the document. Users report Tools > Redact dimmed on ordinary PNG screenshots.
Exporting the screenshot as a PDF and redacting it there is a workaround some people use, but it adds steps and leaves you with a PDF instead of an image, so a filled shape or a crop saved as PNG remains the simpler method.
A PDF is not a flat image. Shapes drawn on a PDF stay separate objects that the recipient can select and delete, so export a redacted screenshot as PNG before you send it.
Can someone remove a black box drawn over a screenshot?
An opaque black box saved into a PNG or JPEG cannot be peeled off, because Apple's Markup merges annotations into the pixels when an image file is saved, and afterwards they cannot be edited, moved or deleted. Screenshots leak through three other routes instead:
- Transparency. Highlighter and marker strokes, such as those in Markup on iPhone and iPad, can be slightly transparent, so text under them can come back when someone lightens or darkens the image.
- PDFs. A box on a PDF is a separate annotation layered over the content, not a change to it.
- Version history. Preview periodically saves versions of images you edit, and File > Revert To > Browse All Versions can restore the unredacted original on that Mac. Redacting a duplicate keeps the file you share separate from that history.
To verify the result, open the exported file in Preview, choose Tools > Adjust Color, drag Exposure and Contrast to their extremes and zoom in on every box. If any character shows through, cover it again and re-export, then close the test window without saving the adjustment.
Is it safer to blur or black out sensitive information?
Blacking out is safer than blurring because a solid box replaces the pixels completely, while blur and pixelation keep a degraded version of what was there. Preview has no blur tool at all, so if you want a softer look for faces or background windows, the steps are in how to blur part of a screenshot on Mac, along with when blur is the wrong choice.
What should you check in a screenshot before sending it?
Before you send a screenshot to support or post it online, check it for anything that identifies you, your accounts or your systems, not only the obvious password field. Go through this list on every capture:
- Email addresses and account names in Mail, the Slack sidebar or the Safari profile menu.
- API keys and tokens in Terminal output and in
.envfiles open in an editor. - Notification banners in the top right corner of the screen.
- Open tabs, the address bar and the Favorites Bar in a browser window.
- Full file paths in window titles and in Finder's path bar (View > Show Path Bar, Cmd+Option+P), which usually include your user name.
- Other windows and the Dock in a full-screen capture.
- Calendar or Messages previews in desktop widgets.
- Metadata and the file name, covered in the last section below.
A scrolling screenshot on Mac needs the same check from top to bottom, because a tall capture often picks up comments, sidebars and account details far below the part you meant to show.
Scanning for this by eye is where mistakes happen. NullShot reads the text in each screenshot on your Mac and flags email addresses, API keys and tokens, card numbers that pass a Luhn check and IP addresses, lets you black out, pixelate or blur each finding, and checks again before every share or upload, with nothing uploaded to do it. The detection rules and the optional automatic mode are explained in automatically redact emails and API keys in screenshots, and the feature overview is in the NullShot privacy section. If a live key has already gone out in a screenshot, revoke and replace it, because a sent image cannot be recalled.
How do you keep notifications, desktop icons and tabs out of the frame?
The easiest data to hide is data that never appears, so turn on Do Not Disturb, hide desktop icons and browser bars, and capture a single window instead of the whole screen. The same banners can land in a video too, so turn on Do Not Disturb before you screen record on Mac as well.
- Do Not Disturb. Open Control Center > Focus > Do Not Disturb, or Option-click the date and time in the menu bar. The System Settings > Notifications option for mirroring or sharing the display (called "Allow notifications when mirroring or sharing the display" in macOS 14 Sonoma) only applies to screen mirroring and screen sharing, not to screenshots. Setting Show previews to When Unlocked or Never also keeps message text out of banners.
- Desktop icons. In System Settings > Desktop & Dock > Desktop & Stage Manager, click Show Items and uncheck On Desktop.
- Browser bars. In Safari, choose View > Hide Favorites Bar (Cmd+Shift+B). In Chrome, open More > Bookmarks and lists and turn off Show bookmarks bar (Cmd+Shift+B on Mac).
- One window only. Press Cmd+Shift+4, then Space, and click the window. Hold Option while clicking to leave out the shadow. The menu bar, the Dock and every other window stay out of the image. Every other capture method is in how to take a screenshot on Mac.
If you prefer Terminal for hiding desktop icons, this community-known Finder preference does the same job:
defaults write com.apple.finder CreateDesktop -bool false && killall Finder
Run the same command with true instead of false to bring the icons back.
Do Mac screenshots contain metadata or location data?
Mac screenshots carry a small amount of metadata: macOS writes the EXIF UserComment "Screenshot" into the file, and the default file name starts with Screenshot followed by the capture date and time. EXIF is a block of metadata stored inside an image file, such as the date, the device and, for photos, the GPS position. Rename the file before sending it if the timestamp matters.
Photos taken on an iPhone can carry location data, which matters when you share a photo of a screen or a document. In Preview, choose Tools > Show Inspector (Cmd+I), open the More Info tab, then GPS, click Remove Location Info and save. If Tools > Show Location Info is greyed out, the image has no location data. In Photos for Mac, choose Image > Location > Hide Location. Preview's option removes GPS data only, not the rest of the metadata.
In this guide
Checklist
- Duplicate the screenshot with Cmd+D and redact the copy, not the original.
- Cover each item with a rectangle set to black Fill Color and black Border Color.
- Crop instead of covering when the sensitive part sits near an edge.
- Save or export as PNG so the boxes merge into the image.
- Re-open the export, drag Exposure and Contrast in Tools > Adjust Color and zoom in.
- Turn on Do Not Disturb by Option-clicking the date and time in the menu bar.
- Capture one window with Cmd+Shift+4, then Space, instead of the whole screen.
- Hide the Safari Favorites Bar with Cmd+Shift+B and close unrelated tabs.
- Rename the file and remove location data from photos before you send them.
Frequently asked questions
Why is the Redact tool greyed out in Preview for my screenshot?
Preview's Redact tool is designed for PDF documents, so it stays disabled for image files such as PNG screenshots. To hide something in a screenshot, draw a rectangle from the Markup toolbar, set its Fill Color and Border Color to black, and save the image. Cropping the area out with Cmd+K also works.
Can someone remove a black box I drew over a screenshot?
Not if the box is fully opaque and the screenshot was saved as an image file such as PNG or JPEG, because saving merges the annotation into the pixels. The real risks are a semi-transparent highlighter stroke, a PDF where the box is still a separate object, and an unredacted original kept in Preview's version history on your Mac.
Can text covered with a highlighter or marker be recovered?
Often, yes. Highlighter and marker strokes, such as those in Markup on iPhone and iPad, can be slightly transparent, so lightening or darkening the image can make the text underneath readable again. Use a filled rectangle with a black fill and border instead, and test the saved file with Exposure and Contrast in Preview's Tools > Adjust Color.
How do I keep notifications out of my screenshots on Mac?
Turn on Do Not Disturb before you capture, either in Control Center under Focus or by Option-clicking the date and time in the menu bar. The Notifications setting for mirroring or sharing the display only applies to screen mirroring and screen sharing, not to ordinary screenshots.
Do Mac screenshots contain location data?
There is no confirmation that macOS adds GPS coordinates to screenshots, but it does write the EXIF comment Screenshot into the file, and the default file name includes the capture date and time. Photos from an iPhone can carry GPS data, which you can remove in Preview with Tools > Show Inspector > More Info > GPS > Remove Location Info.