Convert TIFF to PNG online

Drop a TIFF, including a 16-bit or 32-bit microscope image that usually comes out black, and get a PNG or JPEG with the right contrast and the dpi you want. It runs in your browser and your images never leave your computer.

Loading…

How to convert a TIFF to PNG

To convert a TIFF to PNG, drop the file on the box above, look at the preview, pick PNG (or JPEG) and press Download. Nothing is sent to a server: the TIFF is decoded by code running in this page. You can add several files, and a multi-page TIFF is split into one PNG per page and downloaded as a ZIP.

  1. Drop one or more .tif or .tiff files on the box, or press Browse.
  2. Click a file in the list to preview it. For 16-bit and 32-bit images, move the black point and white point sliders until the picture looks right.
  3. Choose PNG or JPEG. For JPEG, set the quality (92 is a good start for a slide, lower for the web).
  4. Decide what to write into the file as its resolution: keep the TIFF's own dpi, or set a number such as 300 or 600.
  5. Press Download this image, or Download all for a ZIP.

Why a 16-bit TIFF looks black after conversion

Many microscopes and cameras save 16-bit TIFFs. Each pixel can hold a number from 0 to 65535, but a normal PNG or JPEG for a screen holds only 0 to 255. A converter that simply drops the low byte, or divides by 256, turns a sensor image whose brightest pixel is 4000 into values between 0 and 15, which is black to the eye. The data are fine; the picture is just using a small corner of the range.

This converter first measures the values in the whole image, finds the level below which 0.1 % of the pixels lie and the level above which 0.1 % lie (the 0.1 and 99.9 percentiles), and maps that range to 0 to 255. A few hot pixels or a dead corner therefore do not decide the contrast. The two sliders move those cut-off points: clip more for a punchier picture, less to keep the extremes. 32-bit images, including floating-point ones with negative values, are handled the same way.

The stretch is a display choice. The PNG is an 8-bit picture for a slide, a manuscript or a web page. If you measure intensities, line profiles or particle sizes, work from the original TIFF, which is never altered.

Multi-page TIFFs, scale and dpi

A TIFF can hold several images (a focus stack, a time series, or a main image with thumbnails). Each real page becomes a separate file named name_p01.png, name_p02.png and so on; stored thumbnails are left out.

The converter reads the pixel size where the file states it: the ImageJ description (unit= and the resolution tags), plain resolution tags, and the pixel width in an FEI or Thermo header. It prints that next to the preview. It does not draw a scale bar into the image, so add one in your figure software with the number shown.

The dpi you choose is written into the PNG (a pHYs chunk) or the JPEG (the JFIF header). It does not change the pixels; it tells other programs how large to print the image. See the image DPI checker for what that means for a journal figure, and the Compress for submission function if the files are too big to upload.

Supported TIFF files

Uncompressed, LZW, Deflate (ZIP) and PackBits TIFFs are read, with 8, 16 or 32-bit samples (integer or floating point), greyscale, indexed colour or RGB, with or without an alpha channel. CMYK, JPEG-compressed, BigTIFF, separate-plane and 1-bit fax files are reported but not converted. Decoding uses the open-source UTIF.js library.

Frequently asked questions

How do I convert a TIFF to PNG?

Drop the TIFF file on the page, check the preview, choose PNG and press Download. The conversion happens in your browser, so the file is not uploaded. Several files and multi-page TIFFs can be converted at once and downloaded as a ZIP.

Why is my 16-bit TIFF black after converting it to PNG?

A 16-bit image holds values from 0 to 65535, but a PNG for the screen holds 0 to 255. If the values are simply cut down, a microscope image whose brightest pixel is 4000 comes out almost black. This converter stretches the values between the 0.1 and 99.9 percentiles to 0 to 255, and the two sliders let you change that range.

Does converting change my data?

Your TIFF file is never changed. The PNG made from a 16-bit or 32-bit TIFF has 8 bits and a stretched contrast, so it is a picture for a slide or a figure, not a measurement. Take intensities and line profiles from the original TIFF.

Can it convert multi-page TIFFs?

Yes. Every page becomes its own PNG, numbered _p01, _p02 and so on, and the pages are downloaded together as one ZIP file. Reduced-resolution thumbnail pages stored inside the file are skipped.

Is the scale bar or pixel size kept?

The converter shows the pixel size it finds in the TIFF (ImageJ, resolution tags, FEI headers) as text next to the preview. It does not draw a scale bar into the picture. If the TIFF has a dpi, it is written into the PNG.

Are my images uploaded?

No. Your images never leave your computer: they are opened and converted by code running in this page.

Which TIFF files are not supported?

CMYK TIFFs are reported but not converted, and so are JPEG-compressed TIFFs, BigTIFF files, files with separate colour planes, and fax-style 1-bit files. Uncompressed, LZW, Deflate (ZIP) and PackBits TIFFs with 8, 16 or 32-bit samples are read.

More figure tools

The figure tools also cover the other steps of getting a figure into a journal: