EditSafely

Replace Specific Target Pixels

Repaint the pixels of one color, or the pixels at the coordinates you list, with a new color.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Replace Specific Target Pixels is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Replace Specific Target Pixels

  1. 1. Add the PNG. Drop in the PNG files to fix. Each is processed locally in your browser and keeps its size, its other colors and its transparency.
  2. 2. Target the pixels. Click a color on the picture and adjust the tolerance, or switch to coordinates and list pixels as x,y and rectangles as x1,y1-x2,y2.
  3. 3. Pick the new color and run. Choose the replacement color. By default each pixel keeps its own transparency so soft edges stay soft; untick that to paint fully opaque pixels.

When to use Replace Specific Target Pixels

Replace Specific Target Pixels repaints exactly the pixels you choose. Target them by color with a tolerance, or by listed coordinates and rectangles, and they all take one new color while the rest of the picture stays untouched.

  • Recoloring a placeholder color. Game art made with a key color can be switched to its final color in one pass, with tolerance catching the slightly off shades left by export.
  • Fixing individual pixels in pixel art. When a few pixels at known positions have the wrong color, listing their coordinates repaints them exactly without opening an editor.
  • Filling a rectangle with a flat color. A rectangle entry such as 0,0-31,7 paints a solid bar at precise pixel positions, useful for masking a label or marking a test area.

Examples

Recolor a key color

Input

sprite.png, #ff00ff to #00ff00, tolerance 0%

Output

sprite.png with every magenta pixel painted green

Fix one wrong pixel

Input

icon.png, coordinates 7,3, new color #ffffff

Output

icon.png with pixel (7, 3) painted white

About the Replace Specific Target Pixels tool

Replace Specific Target Pixels runs as plain JavaScript in your browser tab, with no server behind it. Repaint the pixels of one color, or the pixels at the coordinates you list, with a new color. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's PNG Tools section, 292 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 6 settings, including Replace, Color to replace, Color tolerance (%) and Pixels ("x,y" or "x1,y1-x2,y2", one per line), and the preview updates as you adjust. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, there is no upload to wait for, and it is safe to use with confidential photos and documents.

Frequently asked questions

Does Replace Specific Target Pixels cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

Which files does Replace Specific Target Pixels accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →