View DICOM
English
Viewer

DICOM vs JPG: what is the difference?

Both hold an image, yet a radiologist will ask for the DICOM file and a friend will ask for a JPG. Each format is right for a different job.

Depth of grey

A JPG stores 256 levels of brightness per channel. A DICOM X-ray usually stores 4,096 to 65,536. On screen they may look the same, but only the DICOM lets you change brightness and contrast afterwards and still find detail in very dark or very bright areas. In a JPG, whatever was black or white when the picture was saved stays that way.

Compression

JPG compresses with loss: fine detail is simplified to make the file small. This is invisible in holiday photos but can blur a hairline fracture or a fine bone structure. DICOM images are usually stored without loss.

Information about the image

A DICOM file carries hundreds of data fields: who the patient is, when and where the image was taken, on which device, and how large one pixel is in millimetres. A JPG knows none of this. Without the pixel size, real distances cannot be measured – see pixel spacing and calibration.

Compatibility

Here the JPG wins. Every phone, computer and website shows it. DICOM needs a special viewer – although a browser-based one such as View DICOM removes most of that obstacle.

Side by side

What about PNG and TIFF?

PNG is lossless, so it does not blur anything, but ordinary PNG export still holds 8 bits per channel. TIFF can hold 16 bits and is common in scanning and publishing. Neither carries the medical data fields of DICOM.

Converting between them

From DICOM to a picture is easy: open the file, set brightness and contrast, and export – see how to convert DICOM to JPG or PNG. The other direction does not bring back what was lost: a JPG wrapped in a DICOM file is still an 8-bit, compressed picture.

The rule of thumb

Keep the DICOM, share the JPG.

Open the viewer – free Guide

More articles