Convert jpg to dcm

Convert JPG to DCM

Convert a JPG into a Secondary Capture DICOM file with DCMTK or approved software.

Convert JPG files online

We don’t have a dedicated online converter for JPG to DCM yet, but you can convert JPG files online to these and more formats:

How to convert jpg to dcm file

A DICOM-capable viewer, PACS, or medical archive may reject an ordinary photograph or scan until it is packaged as a .dcm file. Converting it creates a DICOM object, but it cannot reconstruct clinical metadata or image detail that the JPG never contained.

What the JPG format is

JPG, also called JPEG, is a raster image format used by cameras, phones, scanners, web browsers, Photoshop, GIMP, and photo-management applications. It normally uses lossy compression, so repeated editing and saving can remove detail. A JPG stores pixels and may contain dimensions, color information, and EXIF metadata; it normally has no DICOM attributes such as patient ID, study UID, series UID, modality, or pixel spacing.

What the DCM format is

DCM is a common filename extension, not a separate image format. The file normally contains a DICOM dataset: image pixels plus structured attributes, unique identifiers, acquisition details, and information used by DICOM viewers, PACS servers, and medical archives. DICOM files can also use other or no filename extension.

A JPG packaged as DICOM is generally a Secondary Capture image rather than an original CT, MR, ultrasound, or radiography object. It can satisfy software that requires DICOM syntax and provide a standardized container for the pixels, but it cannot create trustworthy patient, anatomical, acquisition, or measurement data from the image alone.

How to convert a JPG to DCM

Using DCMTK on Windows, macOS, or Linux

DCMTK provides the most controllable general-purpose method. Install it from an official package or a trusted operating-system distribution, then open a terminal in the directory containing the source file.

  1. Keep the original filename, such as scan.jpg; renaming .jpg to .dcm does not convert the file.
  2. Run img2dcm with the input and output filenames:
    img2dcm scan.jpg scan.dcm
  3. Provide known demographic or study values when required by the receiving system:
    img2dcm -k "PatientName=Doe^Jane" -k "PatientID=12345" scan.jpg scan.dcm
  4. Inspect the resulting dataset:
    dcmdump scan.dcm
  5. Open the file in a DICOM viewer such as Weasis, MicroDicom, RadiAnt DICOM Viewer, or 3D Slicer. If a PACS rejects it, obtain its required attributes and SOP class from the PACS administrator.

Do not invent patient, examination, acquisition, or measurement values. For test images, use an approved de-identification policy; for real examinations, obtain the correct metadata from the source system rather than guessing it. The exact img2dcm options and supported input codecs depend on the installed DCMTK version.

Using a graphical application

A DICOM-oriented desktop application may offer Import image followed by Save as DICOM or Export → DICOM. Review the patient, study, series, and image fields before saving, and confirm that the output is a Secondary Capture object. Menu names and conversion capabilities vary by version, so DCMTK is preferable for repeatable or scripted work.

Using an online converter

Services such as CloudConvert, Convertio, or Zamzar may offer JPG-to-DICOM conversion, although format availability and metadata controls change. Use them only for non-sensitive test images unless your organization has approved the provider, its encryption, retention, and deletion terms. Remove embedded EXIF data when appropriate, verify that the service creates a DICOM dataset rather than changing the extension, and inspect the result with a viewer or dcmdump. Do not upload identifiable patient images to an unapproved service.

Quality and compatibility limitations

  • Conversion does not improve quality. JPEG artifacts remain, and missing or discarded detail cannot be restored.
  • If the converter does not resize the source, its pixel dimensions are retained; physical measurements are not reliable unless the original pixel spacing is known and entered correctly.
  • A photograph or scanned document usually lacks modality-specific attributes, orientation, slice position, exposure data, acquisition context, and a valid Patient–Study–Series hierarchy.
  • A technically valid DICOM file can still be rejected because a PACS requires accession numbers, institution fields, specific UIDs, a particular SOP class, or a particular transfer syntax.
  • Do not use a converted JPG for diagnostic interpretation when the original DICOM study exists. The JPG may be downsampled, differently color-managed, or lossy-compressed.

JPG vs DCM: format comparison

How the JPG and DCM formats compare on the properties that matter most for this conversion.

Comparison of the JPG and DCM file formats
Property .JPG JPEG File Interchange Format .DCM DICOM image file
Compression Lossy Both
Transparency No No
Animation No No
Layers No No
Color depth True color (24-bit) —
Metadata support Extensive Extensive
Opens in a web browser Yes, natively No
Typical file size Small Large
Open standard Yes Yes
Best used for Photographs Long-term archiving
Introduced 1992 1985
Developer Joint Photographic Experts Group National Electrical Manufacturers Association (NEMA) / DICOM Standards Committee
MIME type image/jpeg application/dicom

Additional formats for
jpg file conversion

Reverse conversion

Convert to dcm from
other formats

Share on social media: