What Is a DICOM File? The .dcm Format Explained
Quick answer
A DICOM file (usually ending in .dcm) is the standard file format for medical images such as CT, MRI, X-ray and ultrasound. Each file holds the image and a header with details about the patient, the exam and the scanner. You need a DICOM viewer to open one. To share or present the image, convert it to PNG or JPG.
Every scan I acquire, whether a CT head in the middle of the night or a knee MRI, leaves the scanner as a set of DICOM files. They travel to the PACS, the radiologist reads them, and they end up on the CD the patient takes home. Outside the hospital, though, almost nobody can open them. This guide explains what is actually inside a DICOM file, why the format exists, and how to view or convert one.
What DICOM stands for
DICOM stands for Digital Imaging and Communications in Medicine. It is the international standard for storing and exchanging medical images and the information that goes with them. It is published as NEMA standard PS3 and as ISO 12052. Because every vendor follows it, a CT scanner from one manufacturer can send images to a PACS or workstation from another.
DICOM is more than a file format. It also defines how devices talk to each other over a network (for example, how a scanner sends a study to PACS), how worklists reach the scanner, and how images are written to CDs. The file is simply the part most people see.
What is inside a DICOM file
A DICOM file stored on disk (a "Part 10" file) has the same layout every time:
| Part | Size | What it holds |
|---|---|---|
| Preamble | 128 bytes | Usually all zeros. Reserved for applications. |
| Prefix | 4 bytes | The letters DICM, which mark the file as DICOM. |
| File meta information | Varies | Group (0002,xxxx) elements, including the Transfer Syntax UID that says how the rest of the file is encoded and whether the image is compressed. |
| Data set | Varies | The header: hundreds of data elements, each with a tag such as (0010,0010) Patient's Name, a data type (VR) and a value. |
| Pixel data | Most of the file | The image itself, tag (7FE0,0010). Raw or compressed, one frame or many. |
The header is what makes DICOM different from an ordinary picture. Typical contents include:
- Patient: name, ID, birth date, sex, age.
- Study and series: study date, accession number, study and series descriptions, unique IDs (UIDs) that tie images together.
- Acquisition: modality, kVp and mA on CT, TR and TE on MRI, slice thickness, the protocol name.
- Image geometry: rows, columns, pixel spacing, position and orientation in the patient, so software can measure distances and rebuild 3D volumes.
- Display: window center and width, and the rescale slope and intercept that turn stored values into real units such as Hounsfield units on CT.
You can see every one of these fields for your own file in the DICOM tag viewer, which reads the header in your browser. For a deeper look at individual tags, read DICOM tags explained.
DICOM vs PNG and JPG
| DICOM (.dcm) | PNG / JPG | |
|---|---|---|
| Purpose | Clinical storage, diagnosis, exchange between systems | Everyday display, documents, the web |
| Bit depth | Typically 12 to 16 bits of gray (thousands of shades) | 8 bits per channel (256 shades of gray) |
| Patient data | Stored in the header | None, unless burned into the pixels |
| Measurements | Real-world mm and HU are possible | Pixels only |
| Multiple images | A series is many files; one file can hold many frames | One image per file |
| Opens in | DICOM viewers, PACS workstations | Anything: phones, browsers, Word, PowerPoint |
The extra bit depth matters. A CT image stores values from about -1000 HU (air) to over +1000 HU (dense bone). A screen can only show a few hundred shades, so viewers apply a window: a brain window shows 0 to 80 HU in full contrast, and a bone window spreads a much wider range. When you convert to PNG or JPG, one window is "baked in" and the rest of the information is gone. That is fine for a slide, but the original .dcm stays the reference.
Where you will come across DICOM files
- Patient CDs and USB drives. Usually a folder called
DICOMfull of files with no extension, plus aDICOMDIRindex file and often a small bundled viewer. - PACS exports. When you export a study for teaching, research or a referral, it comes out as DICOM.
- Research datasets. Public collections often ship as DICOM, and neuroimaging tools often convert them to NIfTI. See DICOM vs NIfTI.
- Directly from equipment. CT, MRI, digital radiography, ultrasound, mammography, PET and nuclear medicine all produce DICOM.
How to open a DICOM file
Windows and macOS cannot open .dcm files out of the box. You have three options:
- Use a browser-based viewer. The online DICOM viewer on this site opens files and whole folders without uploading them, and lets you scroll, window, zoom and measure.
- Use the viewer on the patient CD. Many discs include one, but it often only runs on Windows.
- Install desktop software. Free and commercial DICOM workstations are available for heavier work such as 3D reconstructions.
How to convert DICOM to PNG or JPG
To put a scan into a presentation, report or message, convert it to a standard image. Use the DICOM to PNG converter or the DICOM to JPG converter for batches. If you want a particular window (lung, bone, brain), set it in the viewer first and save the image from there. Going the other way, the PNG to DICOM converter wraps an ordinary image as a .dcm file.
Before you share: a .dcm file carries the patient's name and ID in its header. Remove them with the DICOM anonymizer or share a converted PNG instead, and check the image for burned-in text. More detail in how to anonymize DICOM files.
A short history
In the early 1980s every scanner vendor used its own format, and images could not move between systems. The American College of Radiology (ACR) and the National Electrical Manufacturers Association (NEMA) formed a joint committee, which published ACR-NEMA 300 in 1985 and version 2.0 in 1988. In 1993 the standard was substantially revised for networks, gained a file format, and was renamed DICOM. It has been updated several times a year ever since, and now covers everything from dose reports to whole-slide pathology.
Frequently asked questions
Why do the files on my CD have no .dcm extension?
The DICOM standard for CDs uses short, extension-less file names such as IM000001. They are still DICOM files. Drag the whole folder onto a DICOM viewer, or rename a file to end in .dcm if a program insists.
What is the DICOMDIR file?
It is an index of the studies, series and images on the disc. It contains no images itself, so convert or open the image files, not the DICOMDIR.
Can I open a DICOM file on my phone?
Yes. Browser-based viewers work on phones and tablets, although a large CT or MRI series is easier to scroll on a computer.
Is it safe to email a DICOM file?
Only if it has been anonymized or you are sending it through a secure channel your hospital approves. The header normally contains the patient's name, ID and birth date.
Is DICOM only used in radiology?
No. Cardiology, radiotherapy, dentistry, ophthalmology and pathology also use DICOM, but radiology is where most people meet it.
Comments