XBM to JPG Converter

Add an .xbm and get a JPG of its black-and-white picture for a form or site that takes only JPGs.

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 list of numbers in the .xbm is read as pixels
  2. The picture is saved as a JPG at Quality 92

What it does

Hex, octal or plain numbers

Whether the list writes a number as 0x3c, 074 or 60, FluffyBench reads the same eight pixels from it.

Limits A file cut off before its list of numbers closes is refused.

Why is the JPG of an .xbm smaller than the .xbm?

Because the .xbm is a picture written out as text, and a JPG packs the same pixels tighter.

Where does an .xbm spend its bytes?

On writing its pixels out as text. Every eight pixels of a row are one number in a long list, like 0x3c followed by a comma and a space: about 6 characters, so 6 bytes, for every eight pixels. Our 96-pixel-square sample of the Earth holds 1,152 of those numbers.

Our sample as the .xbm text, as a JPG and as a PNG

XBM 7.2 KB
JPG 6.0 KB
PNG 3.0 KB

File size, KB

All three hold the same black-and-white Earth. The JPG and PNG are Chromium's. How we measured

The JPG isn't an exact copy: on this sample, 2,755 of the 9,216 pixels came back a shade off pure black or white. FluffyBench's PBM to JPG page shows where those shades come from.

Saving the XBM as a JPG

  1. Load the .xbm through Choose images.

  2. Hit Convert 1 to JPG.

  3. Check the card shows black shapes on white, then take the JPG with its download arrow.

    The finished JPG of the Earth, black on white, on its card, with the download arrow outlined.
    The finished JPG of the Earth, black on white, on its card, with the download arrow outlined.

Smaller still, and exact

Nothing makes you send a JPG.

FluffyBench's XBM to PNG converter

Every pixel stays exactly black or white.

Search FluffyBench