PFM to JPG Converter

PFM files store pixels as floating-point numbers and are used in graphics research, scientific work and some rendering pipelines. Few programs open them. This converter reads the file in your browser, scales the numbers to an ordinary eight-bit picture and saves a JPG you can view or share.

Drop images here, click to choose, or paste with Ctrl+V
PFM files · many files at once · nothing is uploaded
Embed this tool on your websiteShow code

Free to use on any site. Paste the code where you want the tool to appear. It runs inside the page; visitors' files are processed in their own browser and are not uploaded.

WordPress and most site builders have a "Custom HTML" block where this code can be pasted. The embed keeps a small link back to CalcMaster.

How to convert PFM to JPG

  1. Add your PFM files by dropping them, clicking the drop zone or pasting.
  2. The output format is already set to JPG. Adjust quality or size if you need to.
  3. Press Convert and compare the original and new size for each file.
  4. Download each file or all of them as a ZIP.

When to convert, and when not to

  • You need to see what a PFM contains without installing special software.
  • You want a JPG to attach to a report or a message.
  • You will keep the PFM for any measurement or further processing.
  • Do not read numeric values off the JPG; it holds rounded, compressed copies.

What changes

  • Floating-point values are mapped to eight bits per channel.
  • A brightness curve is applied only when the file contains values above 1.0, which signals real high-dynamic-range data. Files with values from 0 to 1 are only scaled.
  • Rows are read in the order PFM stores them, so the picture appears upright.
  • Both colour and greyscale PFM files are handled.
  • JPG is lossy and has no transparency; the quality slider sets the balance.

What a PFM really holds

A portable float map is a very simple format: a short text header followed by raw floating-point numbers. The header gives the size, whether the picture is colour or grey, and a scale value whose sign tells the byte order. Nothing is compressed, which makes the files large and easy to write from code.

Because the numbers are not limited to a range, the same kind of file might hold data for a picture, a depth map or a measurement. The converter treats it as a picture.

How the numbers become a picture

If every value lies between zero and one, the converter simply scales them to the eight-bit range, because applying a display curve on top would brighten data that is already display-ready. If the file contains values above one, it treats the data as high dynamic range and applies a curve so highlights are not simply clipped. Either way, the result is a view of the data, not a calibrated copy.

Depth maps and scientific data

If your PFM is a depth map or another kind of measurement, the JPG will show it as a grey or coloured picture with arbitrary contrast. That is fine for a quick look. Do not use the JPG for any calculation; keep the original file for that.

Sharing the result

A JPG is the easiest thing to attach to an email or a ticket. If you want to avoid compression artefacts around sharp transitions, choose PNG in the options instead. The quality slider appears only for formats that use it.

Checking your result

Scientific and graphics workflows often produce PFM files in batches, such as one per frame or per sensor reading. Convert a single file first and look at it. If the picture is mostly black or mostly white, the data probably uses a range that does not suit a simple scale, and the JPG will not be informative. In that case a tool made for your data, or a normalised export, will give a better view.

Privacy: your files stay on your device

  • The tool decodes, resizes and encodes your pictures with your browser. The files are never sent to a server.
  • To check it yourself: open the browser developer tools (F12), open the Network tab, convert a file, and look for any request that carries your image. You will see none.

Frequently asked questions

Why does my JPG look dark or flat?

The converter only scales values between 0 and 1, and the data itself may be low in contrast. Open the original in a tool made for float data if you need to adjust it.

Can I get the original numbers back?

No. The JPG holds rounded eight-bit values. Keep the PFM for any real use of the data.

What is the difference between PF and Pf files?

PF files hold colour and Pf files hold a single grey channel. The converter reads both.

Is a PFM a normal photo format?

No. It is a simple float format used mainly in graphics and research, so most photo programs cannot open it.

Can I convert several at once?

Yes. Files convert one after another and can be downloaded together as a ZIP.

Why is the picture almost black?

The values may be very small compared with 1.0. The converter scales values between 0 and 1 only, so tiny numbers can look dark.

Related converters