EditSafely

Expand Selected Color Fields

Grow every area of a chosen color outward by a set number of pixels, keeping its own shades.

Runs on your device, nothing uploaded

Drop an image anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG

Your PNG files never leave this tab

Expand Selected Color Fields 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 Expand Selected Color Fields

  1. 1. Add the PNG. Drop in the PNG with the colored areas you want to grow. It is processed in your browser and keeps its size.
  2. 2. Pick the field color. Click the color on the picture or enter it, and raise the tolerance to include anti-aliased shades along the edges of that area.
  3. 3. Set how far to grow and run. Choose a number of pixels. Each step adds a ring around every area of that color, alternating square and diagonal steps for a rounded edge.

When to use Expand Selected Color Fields

Expand Selected Color Fields dilates every area of one color outward by a set number of pixels. New edge pixels copy the shade of the pixel they grew from, so the field keeps its look while lines get thicker and gaps between shapes close.

  • Thickening thin line art. Black outlines that are too thin at small sizes can be grown by one or two pixels so they survive downscaling and stay readable.
  • Closing small gaps in a mask. A colored mask with pinholes and cracks can be grown slightly so its areas join up before it is used to cut out or fill a picture.
  • Bleeding a color for print or textures. Growing the colored artwork a few pixels into the background gives a bleed so trimming or texture filtering never shows a pale fringe.

Examples

Thicken thin black lines

Input

lineart.png, color #000000, grow by 1 px

Output

lineart.png with every black line 2 px wider

About the Expand Selected Color Fields tool

Expand Selected Color Fields does its work locally, right in the browser. Grow every area of a chosen color outward by a set number of pixels, keeping its own shades. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the PNG Tools collection on EditSafely, a set of 292 small, focused PNG utilities that share the same instant, private workspace.

You can shape the output with 3 settings, including Field color, Color tolerance (%) and Grow by (pixels), and the result is made when you press the button. 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. A worked example further down the page shows exactly what the tool produces for a real input.

Running locally also makes the tool fast and dependable: the image is read straight from your device the moment you drop it, there is no server outage that can take it down mid-task, and private pictures stay private.

Frequently asked questions

Is Expand Selected Color Fields free to use?

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?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

Which files does Expand Selected Color Fields 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?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

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 →