To Hide Personal Info in Screenshots, Fill Beats Mosaic: Examples Where a Fine Mosaic Stays Readable, and How to Redact and Paste in the Browser
When you share a screenshot of a support screen, a mosaic over an email address or phone number that is too fine leaves the text readable. Using an in-browser image mosaic, blur and redaction tool, I compared mosaic block sizes from 4 to 16 px, a weak blur, and a 95% opaque black shape that becomes readable again with a brightness adjustment, then walk through hiding text with Fill, copying the result to the clipboard and saving it without location data.
Pasting a screenshot of an admin panel into chat for a bug report, showing an online store’s order page to a family member, posting a settings screen on social media to ask a question: in all of these, you want to hide the names, email addresses, phone numbers and order numbers on the screen before you share it.
A phone’s photo app or Windows Paint can apply a mosaic or draw a black box. But it is easy to get it wrong: the mosaic you applied is not coarse enough and the text is still readable, or the black shape you placed over it is slightly transparent and the text shows through when the brightness is raised. And a shape simply placed on top of an image in a PDF or Word document reveals the original image as soon as someone moves it.
The Image Redaction tool lets you drag over the area you want to hide and replaces the pixels themselves with a mosaic, a blur or a fill before saving. For each area it also shows a rough rating of whether the text could still be guessed. The image is processed inside the browser and is not sent to a server. Here I used the sample image built into the tool to check how much stays readable with different methods and strengths.
The image I tested
Pressing “Try a sample image” in the tool loads an image of a fictional support ticket admin screen (960×600 px). It lists a name, email address, phone number, address and order number, with the text of the inquiry below. In the English version the content is in English too: the email address is jane.doe@example.com and the phone number is (555) 555-0123. All the images below were made in the English version, and the values are fictional data from this sample.
To use your own screenshot, open the file with “Choose image” or drag the image onto the page. Screenshots taken with Win+Shift+S on Windows or ⌘+Shift+Control+4 on a Mac are on the clipboard, so pressing Ctrl+V (⌘+V on a Mac) on the tool’s page loads them directly.
Comparing five areas, each hidden a different way
I hid each of the five values in the sample image in a different way. You create an area by dragging over the image. The method selected under “How to hide” and the slider value below it are used for newly created areas and for the selected area.
| Area | Value | How to hide | Setting |
|---|---|---|---|
| 1 | Name | Mosaic | Block size 16 px (default) |
| 2 | Email address | Mosaic | Block size 4 px |
| 3 | Phone number | Blur | Strength 3 px |
| 4 | Address | Blur | Strength 16 px (default) |
| 5 | Order number | Fill | Black (#000000) |
A newly created area stays selected, so if you then change “How to hide” or move a slider, that area’s setting changes. To create the next area with a different method, first deselect by pressing Esc over the image or clicking an empty spot, and then switch. If you switch to “Blur” while an area is still selected, the mosaic area you just made turns into a blur.
You can move an area by dragging its inside. The selected area moves 1 px with the arrow keys, or 10 px with Shift held down, which helps when you want it to line up exactly with the edge of the text. “Safety margin” defaults to 2 px, so the processed area extends 2 px beyond the dragged area on every side. This keeps the edges of characters from being left just outside the frame.
The Strong, Medium and Weak ratings in the list
The list of hidden areas below the image shows each area’s method, setting, size and position, and a rating.
These were the results.
| Area | Rating | Explanation shown |
|---|---|---|
| 1 Name (mosaic 16 px) | Medium | The shapes of the characters are gone, but the average colors remain. For numbers and passwords, Fill is the safe choice. |
| 2 Email address (mosaic 4 px) | Weak | The text may be readable or guessable. |
| 3 Phone number (blur 3 px) | Weak | Same as above |
| 4 Address (blur 16 px) | Medium | Same as area 1 |
| 5 Order number (fill) | Strong | No original pixels remain. |
Reading the tool’s code, the rating depends on the ratio between the area’s shorter side and the setting. Fill is always “Strong”. A mosaic is “Weak” when its block size is smaller than the larger of 6 px and one sixth of the area’s shorter side; a blur is “Weak” when its strength is smaller than the larger of 4 px and one sixth of the shorter side. The areas here are 27 px tall, so a mosaic below 6 px and a blur below 4 px are “Weak”. These are only rough guides, and “Medium” does not mean safe.
Before and after, side by side
I cut the same part out of the original image and of the image with all five areas processed, and put them side by side.
The two areas rated “Weak” really were readable. The email address under the 4 px mosaic reads as jane.doe@example.com even if you do not know the original. The phone number under the 3 px blur clearly keeps its parentheses and the sequence of digits, and you can tell it is (555) 555-0123.
On the other hand, the name under the 16 px mosaic became two rows of blocks and the character shapes disappeared. The address under the 16 px blur looks like nothing more than a pale gray band. In both, though, the darker parts appear only across the width occupied by text, so you can tell the name is short and the address is long. The filled order number is a black rectangle the size of the dragged area, with no information about the text left at all.
Changing the mosaic block size from 4 to 16 px
To see how coarse a mosaic has to be before text becomes unreadable, I processed only the email address area with different block sizes. I applied the tool’s image processing code (image-redaction-core.js) to the same image and lined up the results.
At 4 px it is readable. At 6 px it looks unreadable at first glance, but the darkness breaks around the . and @, so you can tell it is an address of the form “firstname.lastname@domain.com”. From 8 px up, each character fits within one or two blocks and the shapes can no longer be followed. At 12 px and 16 px, there are only two rows of blocks for the height of the line.
The tool’s own explanation also suggests a block size about the height of the text for a single line (12–20 px in many screenshots). The text in this sample is 18 px, so 12–16 px falls in that range. Screenshots taken on high-resolution displays have about twice as many pixels for the same text, so the block size needs to be larger too. The slider value is in pixels of the original image, not the size shown on screen.
Note that as long as you have not touched the slider, the block size of a newly created mosaic area is set according to the size of the area. The larger of about one third of the area’s shorter side (8–64 px) and the slider value is used, so if you select a large area such as a face or a license plate, the mosaic is coarse from the start.
Hide text with Fill
A mosaic averages the colors in each block, and a blur averages each pixel with its neighbors, so some of the original pixel information remains. That is enough for faces or things caught in the background, but text is different. If someone knows the typeface and the font size, they can sometimes guess the original text by applying the same mosaic to candidate strings and comparing them. Phone numbers, card numbers and order numbers, which have a fixed number of digits and a limited set of characters, are easier to guess because there are fewer candidates.
To hide email addresses, numbers or passwords, Fill is the safe choice. As the comparison above shows, even a mosaic or blur reveals roughly how long the text is. Fill is just a rectangle the size of the frame, so if that concerns you, make the area a little longer than the text and the number of characters becomes hard to guess as well. You can change the color under “Fill color”; on a screen with a white background, white or gray is less conspicuous.
A semi-transparent shape can be read again by adjusting brightness
When you place a black box in image editing or presentation software, watch the shape’s transparency. Even if it looks completely black, the information of the text underneath remains unless it is fully opaque.
I made images of the email address row in the sample with black overlays at 90% and 95% opacity, then applied a correction that stretches the brightness range (making the darkest pixel black and the brightest pixel white).
With the 95% black overlay, the pixel values are squeezed into the range 1–13 out of 0–255, so the row looks almost entirely black. Even so, after the correction jane.doe@example.com was as readable as in the original. In a lossless format like PNG, those slight differences in shade are preserved exactly.
This tool’s Fill replaces the pixels in the area with a single opaque color, and the mosaic and blur also overwrite the pixels in the area with recalculated values. Nothing is placed on top of the original image, so the unprocessed state cannot be extracted from the saved image. As shown above, however, if the mosaic or blur is weak, the text can still be read from the overwritten pixels.
Saving and copying
When you are done, turn on “Show original” to compare with the original image and check that you did not miss anything. Turn it off to go back to the processed view. In the sample image, the second line of the inquiry text also contains a delivery driver’s phone number. If you only look at the field labels when hiding things, it is easy to miss numbers inside body text like this.
Under “Save as” you can choose PNG, JPEG or WebP. PNG keeps the edges of text in screenshots crisp, and JPEG makes photo files smaller. When I pressed “Save image”, sample-support-ticket-redacted.png (60 KB) was saved at the same 960×600 px as the original image.
Pressing “Copy to clipboard” puts the processed image on the clipboard as a PNG. You can paste it directly into Slack, Teams, WhatsApp or the body of an email without saving a file. Browsers that cannot copy images say so, and in that case you can attach the saved file instead.
Exif data such as location is not kept
Photos taken with a smartphone often contain Exif data such as the location where they were taken (GPS), the date and time, and the phone model. Even if you hide faces or a nameplate, a location left in the file can reveal where the photo was taken.
To check, I created a 1600×1200 px JPEG containing a location (35°41′22″N, 139°45′57″E), a capture date and time, a manufacturer name and a model name, applied a mosaic to one spot with the tool and saved it as JPEG. Reading the saved photo-gps-redacted.jpg with Python’s Pillow showed that none of the Exif data from the original file was in it. The size stayed at 1600×1200 px.
The saved image is rebuilt from the processed pixels, so the original file’s Exif data is not carried over. Orientation information is applied to the pixels so the image keeps the orientation you see. If you do not need a mosaic and only want to remove location data from photos, the EXIF and Photo Metadata Editor, introduced in “Remove location data (EXIF) from photos in bulk” (in Japanese), can process many photos at once.
Hiding images that go into PDF or Word documents
If you hide part of a screenshot in a document by drawing a black box over it in PowerPoint or Word, the recipient can move or delete the shape and see the original image. Even after exporting to PDF, the shape and the image may remain as separate objects. Replace images in documents with versions processed and saved with this tool.
If you want to hide parts of the PDF pages themselves before handing them over, one way is to turn the pages into images with the PDF to JPG or PNG Converter, hide what you need with this tool, and then put them back into a PDF with Images to PDF. In that case the pages become images, so the text in the PDF can no longer be selected or searched.
Using it on a smartphone
The same operations work in a smartphone browser. Moving your finger on the image creates an area, so scroll the page outside the image. To fine-tune an area, select it in the list and then turn the device sideways; the image is shown larger and is easier to work with.
Photos in the iPhone’s HEIC format may not open in browsers other than Safari. In that case, export them as JPEG from the Photos app, or use photos taken with the camera format set to “Most Compatible”. Images larger than 50 megapixels, or with a side longer than 16,384 px, cannot be loaded, so shrink them first with the Bulk Image Resizer.
Test environment
- Image Redaction tool (operated in the English version), Chromium (via Playwright)
- The sample image was loaded with the tool’s “Try a sample image”
- The block size comparison was made by applying the tool’s
image-redaction-core.jsto the same image - The semi-transparent shape check and the Exif check of the saved image were done with Python’s Pillow