XPM to JPG Converter

Add an .xpm icon and get a JPG for a form or site that takes only JPGs, its None pixels filled with a color you pick.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

How it works
  1. The XPM's codes are looked up in its legend
  2. None pixels take the fill color you set
  3. Everything is saved as a JPG

What it does

Color names, the X11 way

A legend can name a color instead of giving its code. FluffyBench reads those names as X11 does, so gray comes out as 190, 190, 190 and green as 0, 255, 0.

Limits An XPM cut off partway stops with an error instead of giving half a picture.

What color does “None” become in a JPG?

The one you set under Transparent areas, white unless you pick another, and it meets the picture at a hard step, not a blend.

Where does the fill meet the picture?

A JPG has to put a color in every pixel, and None names no color, so FluffyBench paints each None pixel with the color under Transparent areas in Settings. In our sample icon of the Earth that was 2,474 pixels, the whole space around the planet. With the default white they came out at 254, 254, 254 in red, green and blue, on average.

The JPG of our sample, whole and at its top-left edge.

The Earth in full color on a plain white square.

The JPG

Large square pixels: white on one side, the planet's blues on the other, meeting in a stepped line, with faint lilac tints in the white squares nearest the planet.

Its edge, close up

The white meets the planet in a hard step, with faint tints from the JPG's rounding on both sides of it. How we measured · Photo: NASA, Public domain, NASA-created image, via Wikimedia Commons.

The hard step comes from the XPM, where every pixel is either None or one of the colors in its legend, so there's no half-clear rim for the white to blend into.

Choosing the fill and saving the JPG

  1. Bring in the .xpm with Choose images.

  2. Settings sit beside the converter on a computer; on a phone the gear opens them.

  3. Pick the color for the clear parts under Transparent areas, or leave it white.

    The Transparent areas setting, set to white, with the color button outlined.
    The Transparent areas setting, set to white, with the color button outlined.
  4. Then press Convert 1 to JPG.

  5. The finished card's arrow downloads the JPG.

What if the background changes from place to place?

The icon will sit on more than one color, or on a picture.

FluffyBench's XPM to PNG converter

None stays clear in a PNG, so whatever is behind the icon shows through.

Search FluffyBench