· Updated · 7 min read
How to hide API keys, passwords and card numbers in screenshots automatically (Mac and Windows)
What Snipping Tool, Snagit, Xnapper, BlurData and Cleanss detect automatically, and how to blur every key and card number in a screenshot in one click.
By Cleanss team
You paste a screenshot of a failing request into a GitHub issue. Twenty minutes later someone replies that the Authorization header is readable in the corner. The key is live, the issue is public, and the people who scrape public repos for secrets do not wait twenty minutes.
For the full pre-share checklist, see How to share a screenshot without leaking anything.
This is an ordinary day for developers and founders. Terminals, .env files, billing dashboards and card forms all end up in Slack, pull requests, docs and tweets. Guardsquare lists screenshotting a config file among the common ways keys leak by accident (Guardsquare). In September 2026 The Register reported that AI coding agents had pushed more than 13,000 sensitive screenshots from 343 organisations to public GitHub repos, credentials included, because they found no other way to attach images to private-repo pull requests (The Register).
The fix is not to be more careful. It is to make the blur happen before you can forget it.
Why manual blurring fails
Three things go wrong in practice.
You forget. The secret is rarely in the part of the screen you were looking at. Address bars, tab titles, notification banners and autocomplete dropdowns are where leaks usually sit, at the edges, because that is where your attention was not (algenius).
It is slow. Every screenshot means opening an editor, hunting for the sensitive bits, drawing over each one and exporting again. One developer in a Hacker News thread on screenshot tools said that cleaning up screenshots takes a lot of his time, and he was not the only one (Hacker News). When redaction costs a minute per image, people skip it on the fifth image of the day.
The built-in tools are limited. On Mac, Preview's Markup has no blur at all; you can only cover text with a filled shape (Setapp). On Windows 11, Snipping Tool lets you select text, right-click and choose Redact text to drop a solid black bar over it, one selection at a time (pureinfotech).
What "automatic" detects today
Several tools now scan a screenshot and find sensitive text for you. They do not all look for the same things, and the gaps matter if your secrets are keys rather than phone numbers.
| Tool | Runs on | Finds automatically | API keys | Passwords | Card numbers |
|---|---|---|---|---|---|
| Windows Snipping Tool, Quick Redact | Windows | Emails, phone numbers | No | No | No |
| Snagit, Smart Redact | Mac and Windows | Addresses, card numbers, dates, emails, faces, IP addresses, phone numbers, SSNs, URLs | No | No | Yes |
| Xnapper | Mac | Emails, card numbers, IP addresses, API keys | Yes | No | Yes |
| BlurData | Mac, Windows (plus a separate iPhone and iPad app) | Emails, names, amounts, account numbers and IBANs, addresses, licence plates, IP addresses, URLs | Only via a custom pattern you add | Not listed | Via a bank-statement preset |
| Cleanss | Mac and Windows | Emails, card numbers, passwords, API keys and tokens, phone numbers, IPv4 addresses, US SSNs | Yes | Yes | Yes |
Some detail on each.
Snipping Tool's Quick Redact covers emails and phone numbers on its own; anything else is manual. Redaction is permanent once you save as a new file, and it does not strip the image's metadata (geekrewind).
Snagit's Smart Redact arrived in Snagit 2025.0.0, released on 12 February 2025 for both Windows and Mac (TechSmith, Windows, Mac). It has the longest list, with blur, pixelate or black-bar output, but API keys, passwords and tokens are not on it (Snagit Smart Redact). It is built for billing details and survey data, not for a terminal.
Xnapper detects emails, credit card numbers, IP addresses and API keys (Xnapper); card, IP and key detection was added in v1.15.5 in October 2022 (Xnapper changelog). Mac only.
BlurData processes images locally. Its built-in detectors cover emails, names, amounts, account numbers and IBANs, addresses, licence plates, IP addresses and URLs; card numbers come from a bank-statement preset, and API keys only through a custom pattern you add yourself (BlurData). As of November 2026 a personal licence is $79 a year or $149 one-time for one Mac. There is a separate iPhone and iPad app, and its site now links a free Windows version on the Microsoft Store, though it does not say which detectors that version has.
Cleanss runs on Mac and Windows. Its scan reads the screenshot on your device, nothing is uploaded. It finds emails, card numbers (checked with the Luhn checksum), passwords, API keys and tokens (Stripe, OpenAI-style, GitHub, AWS, Slack, Google, JWTs), NAME=value secrets in env files, credentials inside URLs, phone numbers, US Social Security numbers, IPv4 addresses and long random-looking strings that are often bearer tokens. It does not look for hostnames, IPv6 addresses or short tokens.
Read the table from the Windows side and the picture is stark: apart from Quick Redact's emails and phone numbers, the Windows options that find things for you are Snagit, Cleanss and BlurData's new Windows app, and Cleanss is the only tool here that looks for passwords. Xnapper also finds API keys, but only on Mac.
How to do it with Cleanss
- Capture. Press ⇧⌘1 on Mac or Ctrl+Shift+1 on Windows to capture an area, ⇧⌘2 or Ctrl+Shift+2 for the full screen, or capture a single window. A small thumbnail appears in the corner with Copy and Edit.
- Open the editor. Click Edit on the thumbnail. If you prefer, set captures to open the editor every time, or to go straight to the clipboard when you know a screenshot is clean.
- Run the sensitive-info scan. It reads the image on the device and outlines every email, card number, password, key and token it finds. Nothing leaves your machine.
- Click Blur all. Every outlined match is covered in one click. Use the Blur or Pixelate tool with the strength turned up if you want a heavier treatment. The blur stays locked to the screenshot, so moving, tilting or re-cropping the image later never uncovers what you hid.
- Check the edges yourself. The scan finds patterns; it cannot know that your internal hostname or a customer's name is sensitive. Drag a Blur over anything else before you leave the editor.
- Export. ⌘C (Ctrl+C on Windows) copies the image, ⌘S (Ctrl+S) saves a PNG, both at full native resolution.
To take the forgetting out of the loop, turn on the setting that runs the scan automatically on every capture. From then on, every screenshot comes with its matches already outlined, and Blur all is one click away before you paste anywhere.
How the blur ends up in the file: Copy and Save render a single flat PNG from what you see on the canvas. There are no layers, the original pixels under a Blur or Pixelate region are not in the file, nothing you cropped away is kept, and there is no metadata beyond the standard image header.
If a key already leaked
Blur the next screenshot, but do not try to rescue this one. Resend's guidance is blunt: a key that has touched GitHub, Pastebin, a public gist, a client-side app or "even a shared screenshot" should be treated as already scraped, and the first step is to revoke it (Resend). Tavily's playbook is the same: revoke, regenerate, then update your environment files and secret stores (Tavily).
Deleting the post is not enough. When a DOGE employee leaked a private xAI key, the repository was removed but the key stayed valid (TechRadar). Rotate first, clean up second.
FAQ
Is it safe to share a screenshot of my API key? No, not even in a private Slack channel or a draft PR. Screenshots get forwarded, re-uploaded and indexed, and developer platforms such as Resend tell you to treat a key in a shared screenshot as compromised. Blur it before you paste, or rotate it afterwards.
Does Snipping Tool blur? No. Snipping Tool redacts with a solid black bar, not a blur, and its Quick Redact only finds emails and phone numbers automatically. Everything else you select by hand. For keys, passwords and card numbers on Windows you need a third-party tool.
Is pixelation reversible? Light pixelation can be. Bishop Fox's Unredacter tool reconstructs pixelated text by inferring the font and size from the unredacted text around it, which is why its authors recommend black bars that cover the whole string (Bishop Fox). In Cleanss, turn the Blur or Pixelate strength up rather than leaving it light, and make sure the blur covers the full width of the string.
If you want to run the scan on your own screenshots, you can download Cleanss for Mac or Windows.