Skip to Content
go-dicom(3)
Command line

info

Prints a short summary of a DICOM file: its size, the patient, study and modality, and the image's rows, columns and frames.

When to use it

Use info for a quick look at what a file is and whom it belongs to. It prints a fixed handful of attributes and leaves out any it does not find.

It does not list every element (use show), check the file against its IOD (use validate), or print the transfer syntax (use go-dicom show file.dcm::TransferSyntaxUID). There is no single dcmtk tool like it; dcmdump with a few +P options comes closest.

Examples

Summarize a file

go-dicom info ct.dcm
=== DICOM File Information ===
File:         ct.dcm
Size:         39206 bytes
Modified:     2026-12-04 12:57:36

Key DICOM Elements:
─────────────────────────────────────
Patient Name:    CompressedSamples^CT1
Patient ID:      1CT1
Study Date:      20040119
Modality:        CT
Study Desc:      e+1

Image Dimensions:
─────────────────────────────────────
Rows:            128
Columns:         128

A file that is not an image prints no image section; a structured report, for example, shows its patient, modality and descriptions only.

Count the elements

go-dicom info ct.dcm --stats
…
File Statistics:
─────────────────────────────────────
Total Elements:  269
Private Tags:    179
Total Data Size: 36866 bytes
Avg Element Size:137 bytes

More detail

go-dicom info ct.dcm --verbose

--verbose adds the file's absolute path and permissions, the first 20 elements with their names, VRs and lengths, and the dictionary entries of the first 10.

…
Detailed Elements (first 20):
─────────────────────────────────────
0002,0001    File Meta Information Version OB  2 bytes
0002,0002    Media Storage SOP Class UID UI  26 bytes
…

Notes

  • The summary shows Patient Name, Patient ID, Study Date, Modality, Study and Series Description, Rows, Columns and Number of Frames, each only when the file has a value for it.
  • Modified is the file's modification time on disk, not a DICOM date.
  • info reads the file and changes nothing. It exits 1 when the file is missing or cannot be read as DICOM.

See also

Options

COMMAND: info - Show DICOM file metadata

USAGE:
  go-dicom info <file> [options]

DESCRIPTION:
  Display key DICOM metadata including patient information, study details,
  and image dimensions. Integrates with DICOM dictionary for tag information.

OPTIONS:
  -h, --help    Show help for this command
  --verbose     Show detailed information and tag metadata
  --stats       Show file statistics

EXAMPLES:
  go-dicom info patient.dcm
  go-dicom info patient.dcm --verbose
  go-dicom info patient.dcm --stats
  go-dicom info -h

On this page