Farbfeld to PNG Converter

Add a farbfeld .ff file and get a PNG, at 8 bits a channel or, if you choose, all 16.

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

PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. Which PNG settings are worth changing?

How it works
  1. Your browser reads the farbfeld pixels
  2. They're brought to the PNG's depth
  3. A PNG is saved

What it does

Every shade of see-through

Farbfeld stores a see-through value for every pixel, and the PNG keeps the clear and the partly clear ones.

Tagged as sRGB

Farbfeld colors are meant as sRGB, and the PNG carries the tag that says so, so other programs show the colors as intended.

Limits A file that doesn't start with the word “farbfeld” is refused.

What does “16-bit precision is not kept” mean for your farbfeld file?

For a file made from an ordinary picture, nothing. For a true 16-bit source, one setting keeps every bit.

Does the precision warning mean something was lost?

Farbfeld is a very plain format from the suckless project: a short header, then every pixel as red, green, blue and see-through, each stored with 16 bits. It's built to be easy to read and to pass between small command-line tools, and ordinary image viewers don't open it.

Convert one to PNG and the finished card says “16-bit precision is not kept on conversion.” By default the PNG holds 8 bits a channel, the usual depth for pictures on screen, so each of farbfeld's 65,536 steps is rounded to one of 256.

Whether that costs anything depends on where the file came from. A farbfeld made from an ordinary 8-bit picture simply holds each value spread out to 16 bits, and rounding back gives exactly what went in: our sample photo, written as farbfeld from an 8-bit PNG, converted back with 0 pixels changed out of 12,288.

A farbfeld from a 16-bit source, such as a scan made at 16 bits, has real detail in the extra bits. For those, switch the PNG to 16 bits, as below, and the warning goes away.

Switching the PNG to 16 bits a channel

For an 8-bit-sourced file, skip steps 2 to 5 and keep the default.

  1. Add the .ff file through Choose images.

  2. Show the settings, which a phone tucks behind its gear button.

  3. Open More options at the bottom of them.

  4. Switch PNG encoding from Browser default to Advanced local encoder.

  5. Pick 16-bit under PNG sample depth.

    The PNG settings: encoding on Advanced local encoder and sample depth on 16-bit, both outlined.
    The PNG settings: encoding on Advanced local encoder and sample depth on 16-bit, both outlined.
  6. Press Convert 1 to PNG. The card no longer warns about precision.

  7. Download the PNG from the card.

What else can the farbfeld file become?

The picture is going to someone who just wants to look at it.

FluffyBench's farbfeld to JPG converter

A JPG is much smaller still, with its clear parts filled with a color.

A command-line tool from the suckless project wants its input as farbfeld.

FluffyBench's farbfeld converter

It writes .ff files from PNG, JPG and other pictures, with a see-through value stored for every pixel.

Search FluffyBench