DICOM Explorer
Learn the DICOM standard — its file structure, data elements, VRs, modalities, and SOP classes — then upload real .dcm files to inspect them live.
What is DICOM?
DICOM (Digital Imaging and Communications in Medicine) is the international standard for medical images and related information. It defines the formats for medical images that can be exchanged with data and quality necessary for clinical use.
Originally developed by the American College of Radiology (ACR) and the National Electrical Manufacturers Association (NEMA) in 1985 as ACR-NEMA, it became DICOM 3.0 in 1993. Today it is maintained by the Medical Imaging & Technology Alliance (MITA).
DICOM is not just an image format — it is a complete communication protocol that defines how devices send, receive, print, and store medical images.
DICOM File Structure
A DICOM file has a specific binary layout. Every conformant file starts with a 128-byte preamble, a 4-byte "DICM" magic marker, and then a series of data elements called the File Meta Information (group 0002), followed by the dataset itself.
Data Element Encoding
Includes the VR as 2 ASCII bytes, making the file self-describing. Used in Transfer Syntaxes like Explicit Little Endian (1.2.840.10008.1.2.1).
VR is omitted — readers must look up the data dictionary. Default Implicit Little Endian (1.2.840.10008.1.2) is being phased out.
Data Elements & Tags
Every data element is identified by a tag — two 16-bit numbers written as (GGGG,EEEE) where GGGG is the group and EEEE is the element number. For example, (0010,0010) is Patient Name.
Specifies the data type and format of the value — e.g. DA (date), UI (UID), US (unsigned short). There are 27 VR types defined by the DICOM standard.
How many values the element can hold. VM=1 means a single value; VM=1-n means one or more values separated by backslash (\).
Value Representations (VR)
VRs define the data type for each element. There are 27 defined VR types.
Imaging Modalities
The Modality tag (0008,0060) identifies the type of equipment that acquired the image.
X-ray measurements from multiple angles to produce cross-sectional images.
Strong magnetic fields and radio waves to produce detailed organ images.
High-frequency sound waves to create images of internal structures.
Digital X-ray images captured via photostimulable phosphor plates.
Direct digital X-ray capture (flat-panel detectors).
Radioactive tracers to image organ function and physiology.
Metabolic imaging using positron-emitting radionuclides.
X-ray imaging of blood vessels, often with contrast.
Low-energy X-rays to examine breast tissue.
Real-time moving X-ray images.
Modality not covered by defined terms.
Clinical reports stored in DICOM format.
SOP Classes
A SOP Class (Service-Object Pair Class) combines a DICOM Service (e.g. Storage) with an Information Object Definition (e.g. CT Image). The SOP Class UID uniquely identifies what kind of object this is.
| UID | Name |
|---|---|
| 1.2.840.10008.5.1.4.1.1.2 | CT Image Storage |
| 1.2.840.10008.5.1.4.1.1.4 | MR Image Storage |
| 1.2.840.10008.5.1.4.1.1.128 | PET Image Storage |
| 1.2.840.10008.5.1.4.1.1.6.1 | Ultrasound Image Storage |
| 1.2.840.10008.5.1.4.1.1.1 | Computed Radiography Image Storage |
| 1.2.840.10008.5.1.4.1.1.1.1 | Digital X-Ray Image Storage — For Presentation |
| 1.2.840.10008.5.1.4.1.1.7 | Secondary Capture Image Storage |
| 1.2.840.10008.5.1.4.1.1.481.1 | RT Image Storage |
| 1.2.840.10008.5.1.4.1.1.12.1 | X-Ray Angiographic Image Storage |
| 1.2.840.10008.5.1.4.1.1.11.1 | Grayscale Softcopy Presentation State |
DICOM Information Hierarchy
DICOM organises data in a strict four-level hierarchy. Every instance belongs to a series, every series belongs to a study, and every study belongs to a patient. Unique identifiers (UIDs) link the levels together.
(0010,0020) Patient IDTop-level entity. One patient can have many studies across years. Identified by Patient ID and Patient Name.
(0020,000D) Study Instance UIDOne clinical visit / request. A chest CT and a bone scan ordered together share a Study Instance UID. Described by Study Date, Time, Description, and Accession Number.
(0020,000E) Series Instance UIDA coherent set of images acquired with the same protocol (e.g. axial CT chest, sagittal T2 MR spine). One study may have many series.
(0008,0018) SOP Instance UIDOne individual DICOM object — a single image slice, a structured report, or an entire multiframe dataset. Identified by the globally unique SOP Instance UID.
UID Structure
Every UID in DICOM follows the ISO 8824 Object Identifier (OID) syntax — a dot-separated sequence of digits, max 64 characters. The root prefix is registered with the standards body; the suffix is generated by the implementation.
DICOM Network & Associations
DICOM defines its own networking protocol stack (DIMSE — DICOM Message Service Element) that operates over a TCP/IP connection. Before any data flows, two devices must establish an Association — a handshake that negotiates capabilities.
Association Negotiation
Key Networking Concepts
Application Entity Title — up to 16 ASCII chars identifying a DICOM device (e.g. PACS_ARCHIVE, CT_SCANNER_3).
Service Class User — the initiator/client. Calls the service (e.g. sends C-STORE).
Service Class Provider — the responder/server. Handles the service (e.g. receives and stores C-STORE).
A pairing of one Abstract Syntax (SOP Class) with one or more Transfer Syntaxes. Each gets an ID (1, 3, 5…).
Protocol Data Unit — the binary message unit. A-ASSOCIATE, P-DATA, A-RELEASE, A-ABORT are all PDU types.
Default TCP port 104 (standard), 11112 (non-privileged alternative). DICOMweb uses 443 (HTTPS).
Modality Worklist (MWL)
Worklist is the mechanism by which a scanner fetches the list of scheduled patients from the RIS before a scan. Without it, technologists must manually type patient demographics at the scanner — a major source of error.
Sequences (SQ) & Nested Data
VR SQ (Sequence of Items) is DICOM's way of nesting structured data — similar to an array of objects. Each Item in a sequence is a complete dataset enclosed in Item delimiters.
Sequence Binary Layout
SQ tag + lengthe.g. (0008,1115) Referenced Series Sequence(FFFE,E000) Item startMarks beginning of one itemDatasetArbitrary DICOM attributes (can include nested SQ)(FFFE,E00D) Item endMarks end of one item… repeat for each itemMultiple items = multiple rows of data(FFFE,E0DD) Seq endSequence delimiter (if undefined length)Common Sequences
(0008,1115)(0008,1250)(0040,0260)(0040,A730)(5200,9229)(5200,9230)(0008,9092)Ready to explore more?
Dive into imaging concepts — planes, windowing, MPR — or open the viewer to inspect a real file.