Add an .xbm and get a JPG of its black-and-white picture for a form or site that takes only JPGs.
FluffyShieldProtected workspace
From
To
Loading the tool…
The tool didn't load. Reload the page, or check whether an extension or network filter blocks .
Free · No upload · No sign-up · No usage quotas
How it works
The list of numbers in the .xbm is read as pixels
→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.
FluffyBench · 2 min read · Measured on an XBM of the Earth
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
XBM7.2 KB
JPG6.0 KB
PNG3.0 KB
02468
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
Load the .xbm through Choose images.
Hit Convert 1 to JPG.
Check the card shows black shapes on white, then take the JPG with its download arrow.