OCR finds the text · you review every box · flattened PNG out

Auto-Redact Sensitive Text in Screenshots

Scan a screenshot for emails, phone numbers, card numbers, IBANs, IP addresses and URLs, then cover each one with a black box or a coarse pixelation. Every hit can be switched off, and you can draw extra boxes for anything OCR missed.

Screenshot

A screenshot, photo of a screen or scanned page

Drop a screenshot here, paste, or click to choose

PNG, JPG, WEBP, GIF or BMP, up to 25 MB. Pictures over 4096 px on the long side are scaled down.

Auto-Redact Sensitive Text in Screenshots

Operator: Abdulla Al Fahad. How tools are built and checked

A support ticket screenshot usually carries more than the bug: a customer's email in the header, a phone number in the sidebar, the last digits of a card in a billing box. Finding each of them by eye and dragging a rectangle over it is slow and easy to get wrong at the fifth screenshot of the day.

This page reads the screenshot's text with OCR, matches it against patterns for emails, phone numbers, card numbers, IBANs, IP addresses and URLs, and draws a box on every hit. You switch off the ones you want to keep, draw boxes for anything OCR missed, and save a flattened PNG.

Key features

  • Patterns for email addresses, phone numbers, card-like numbers (Luhn-checked), IBANs (mod-97 checked), IPv4 and IPv6 addresses, URLs and your own regular expression
  • A checkbox for each hit, listing the matched text so you can see exactly what will be covered
  • Manual boxes drawn by dragging, for text OCR could not read or that no pattern covers
  • Cover with a solid black box or with pixelation whose blocks are never finer than a third of the text height
  • Flattened PNG export: the covered areas are painted into the pixels, so nothing underneath is stored

What the patterns match, and why OCR misses are possible

OCR reads one line of words at a time and the patterns run over each line joined with single spaces, so a card number that OCR split into four words still becomes one box. A match is mapped back to the words it touches, and the box is the union of those words plus the padding you set. Overlaps are settled in a fixed order: IBAN, then card, email, URL, IP address, phone, custom.

The validators keep false alarms down. A card candidate needs 13 to 19 digits that pass the Luhn check, so "1234 5678 9012 3456" is left alone while "4111 1111 1111 1111" is covered. An IBAN candidate must pass the mod-97 check. A phone number needs 7 to 15 digits and either a separator or plus sign or at least 10 digits, and dates such as 2024-01-15 are excluded. Trailing punctuation is trimmed from emails and URLs.

OCR is the weak point. Characters can be misread, so a pattern may miss an email whose "@" was read as "a", and very small or low-contrast text may not be read at all. Screenshots under 1600 px on the long side are enlarged two times before recognition to help with small text, and the review step exists because the scan is not a guarantee.

How it works

The text recogniser runs in a background worker. It downloads its OCR model the first time you scan, then keeps it cached, and nothing in your image leaves the browser. The picture is recognised once and the word boxes are kept, so changing which patterns are on, or editing the custom pattern, re-runs only the matching and not the OCR. Export draws the picture onto a fresh canvas, paints the enabled boxes and encodes a PNG.

Common use cases

  • A developer posts a bug report with a screenshot of an admin panel. The scan finds 14 email addresses in a table; she unticks the three that are her own team's and covers the other 11 in one export.
  • A finance clerk shares a statement excerpt. The IBAN and the card number are found, but the account holder's name is not a pattern, so she draws one box over it by hand.
  • A tutorial author blurs the API host in 22 screenshots by adding a custom pattern, api\.[a-z0-9-]+\.internal, then checking each result before saving.

How to use this tool

  1. Drop a screenshot, choose the language of its text and press Scan for sensitive text.
  2. Tick or untick the patterns, scan the hit list, and uncheck anything that should stay visible.
  3. Drag on the picture to add a box for anything missed, and choose black or pixelation.
  4. Download the PNG and open it at 100% to check each covered area against the original.

Example

Text in a support-ticket screenshot, with two near-misses

Mail anna.k@example.co.uk, call +1 (415) 555-0132. Card 4111 1111 1111 1111 and 1234 5678 9012 3456.
IBAN DE89 3704 0044 0532 0130 00; ip 192.168.0.1 and 10.0.0.256. See https://example.com/a?b=1).

Hits listed for review

Email anna.k@example.co.uk
Phone +1 (415) 555-0132
Card-like number 4111 1111 1111 1111
IBAN DE89 3704 0044 0532 0130 00
IP address 192.168.0.1
URL https://example.com/a?b=1
Left alone: 1234 5678 9012 3456 (fails Luhn), 10.0.0.256 (not a valid address)

Common pitfalls

Pixelation and blur hide text from a glance, not from software. Fine blocks over small text can be partly reversed, which is why the page will not go below a third of the text height, but a solid black box is the only cover that leaves nothing to recover.

  • For a log or terminal screenshot, add a custom pattern for the token prefix your system uses, such as sk_live_[A-Za-z0-9]+, so keys are covered along with the standard patterns.

Common errors and how to fix them

"No text was recognised in this picture"
The text is too small, too faint or in another language. Pick the right language in the list and rescan, or draw the boxes by hand.
A custom pattern shows a red message
The regular expression does not compile, so it matches nothing until fixed. Patterns are limited to 200 characters and are case-insensitive.

Best practices

  • Scan the unticked hits again: a pattern that matched your own address is a sign the others are right.

Frequently asked questions

When is Blur Image Region the better tool?

When the thing to hide is not text: a face, a number plate, a logo. Pattern matching needs readable characters, so that page, where you place the box yourself, is the one for anything OCR cannot see. For a PDF, where the text layer underneath would survive a drawn box, use Redact PDF instead of a screenshot of it.

Will the original text still be inside the PNG?

No. The export draws the picture onto a new canvas and paints over it, then writes a PNG with no layers, text or metadata from the source. Only the final pixels are stored.

Why is each box a little larger than the text under it?

The box is the union of the matched words plus the padding you set, then rounded outwards to whole pixels. Edges that fell between pixels would leave a faint line of the original behind, and a few extra pixels also cover the parts of letters that OCR boxes tend to clip.

Why did it miss a phone number?

Numbers without separators and under 10 digits are treated as IDs or amounts, and numbers whose digits OCR misread fail the digit count. Draw a box for it or add a custom pattern.