Skip to content

Convert JPG to DICOM

Create a DICOM Secondary Capture from JPG with DCMTK and check its metadata.

Convert JPG files online

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

Want to convert JPG to DICOM?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert jpg to dicom file

A clinic, imaging archive, or DICOM viewer may require an image as a DICOM object before it can be imported or shared. Converting a JPG can package its pixels as a Secondary Capture image, but it does not make an ordinary photograph a medically acquired scan.

What the JPG format is

JPG, usually called JPEG, is a raster-image format that commonly uses lossy compression. Cameras, phones, scanners, browsers, and image editors create or display JPG files; the format is widely used for photographs and screenshots because it is broadly supported and often compact.

What the DICOM format is

DICOM is a standard for medical-image objects and related information. A DICOM object can contain pixel data plus metadata identifying the patient, study, series, and image, and DICOM also defines ways for imaging systems to exchange data. A JPG can be stored as a DICOM Secondary Capture object, but conversion cannot supply missing acquisition details, calibration, or clinical meaning.

How to convert a JPG to DICOM

For offline conversion, use DCMTK’s img2dcm utility. It accepts JPEG input and creates a DICOM Secondary Capture object. ImageJ can open JPG files, but its standard save options do not write DICOM, so it is not suitable for this conversion without a separate DICOM-writing plugin.

  1. Install DCMTK from its official distribution and open a terminal in the folder containing the image.
  2. Run img2dcm -k "PatientName=DOE^JANE" -k "PatientID=12345" "input.jpg" "output.dcm". Replace the example patient values and filenames with the correct ones; do not put invented identifiers into clinical records.
  3. Open output.dcm in a DICOM viewer. Check the image and its patient and study metadata, and confirm that the receiving system accepts the Secondary Capture type and required fields. Correct missing or incorrect metadata using an approved workflow.

A web converter is appropriate only for non-sensitive images when its output can be checked for the required DICOM object type and metadata. Do not upload identifiable medical images to an unapproved service; generic converters may also omit fields required by the receiving system.

Quality and compatibility limits

JPEG compression discards image information, and DICOM conversion cannot restore it. Depending on the tool and settings, JPEG data may be retained in compressed form or decoded and re-encoded; neither process improves the source image. A converted file does not gain scanner acquisition data, spatial calibration, or diagnostic provenance. Use Secondary Capture only when that representation is suitable for the image and accepted by the destination system.

JPG vs DICOM: format comparison

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

Comparison of the JPG and DICOM file formats
Property .JPG JPEG File Interchange Format .DICOM Digital Imaging and Communications in Medicine
Compression Lossy Both
Transparency No No
Animation No No
Layers No No
Color depth True color (24-bit) 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 Embedding in applications
Introduced 1992 1985
Developer Joint Photographic Experts Group National Electrical Manufacturers Association (NEMA) and the medical imaging standards community
MIME type image/jpeg application/dicom

Information about file extensions and file types is provided by File-Extensions.org

Additional formats for
jpg file conversion

Reverse conversion

Convert to dicom from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.