Open files in VS Code and Cursor / 3D and imaging

DICOM to NIfTI in VS Code

Open the DICOM series in DICOM Viewer and click To NIfTI in the toolbar. It saves the series as a .nii.gz volume with the real voxel size and the scanner orientation (sform and qform). Viewing, windowing and the tag table are free; Convert DICOM to NIfTI is a Zovo Pro tool with 3 free tries, then USD 19 once. For large studies and scripted pipelines, dcm2niix is the standard tool.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)

Free, MIT license. Extension ID zovo.dicom-nifti-viewer, version 0.2.2. Needs VS Code 1.90.0 or newer.

Also free from Zovo: TIFF Viewer & TIF Viewer, VS Code Marketplace · Open VSX (Cursor, Windsurf).

A NIfTI brain phantom in the sagittal view of DICOM Viewer, with its 17 header fields such as voxel size, sform code and the affine rows.
A NIfTI brain phantom in the sagittal view of DICOM Viewer, with its 17 header fields such as voxel size, sform code and the affine rows.

Steps in VS Code

  1. Install DICOM Viewer from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.dicom-nifti-viewer.
  2. Right-click the folder of slices in the Explorer and pick Open Folder as DICOM Series. A single .dcm file or a DICOMDIR opens with a click.
  3. Scroll the slices and check the series. A yellow bar shows when Patient's Name or Patient ID is filled.
  4. Click To NIfTI in the toolbar, or run "DICOM Viewer: Convert DICOM Series to NIfTI (.nii.gz) (Zovo Pro)" from the Command Palette.
  5. Save the .nii.gz file. The voxels are the values the viewer shows, so CT stays in HU.
  6. The first 3 runs are free. A try counts only when the file is saved.
  7. Click the new .nii.gz to open it in the same viewer and check the orientation letters and header fields.

Where Zovo Pro saves time

Opening DICOM files, DICOM folders and NIfTI (.nii and .nii.gz) is free: window presets, axial, coronal and sagittal views, the value under the cursor, the tag table, the anonymity check and Export PNG. The conversion to NIfTI is a Pro tool.

Right-click a folder that holds several series and you get one .nii.gz per series in one run. The second Pro tool, Export DICOM tags to CSV, writes one row per file with modality, dates, series, size, spacing, position and scanner, so you can check a dataset before training.

With Convert DICOM to NIfTI (Zovo Pro)

  1. Right-click a folder that holds several series in the Explorer and run Convert DICOM to NIfTI. Each series becomes its own .nii.gz file.
  2. Color (RGB) series are skipped.
  3. For a tag list, right-click the folder or run "DICOM Viewer: Export DICOM Tags of a Folder to CSV (Zovo Pro)".
  4. Pick Summary for one row per file that only says whether Patient's Name and Patient ID are filled, or Every tag for one column per tag, patient data included.

Convert DICOM to NIfTI works 3 times on your computer before it asks for a license, and a try counts only when you get a result. Opening a file shows no popup and no countdown.

Pay by card, USD 19 onceGitHub SponsorsPayPal

Zovo Pro costs USD 19 once. It is not a subscription, and it turns on the Pro tools in every Zovo extension, not only DICOM Viewer. After a card payment (Stripe) your license key shows on the next page. In VS Code, run "Zovo Pro: Enter Zovo Pro license key" from the Command Palette and paste it. The key is checked on your computer, with no network call. With GitHub Sponsors, pick the "$19 one time" tier, then run "Zovo Pro: I already paid: unlock with GitHub Sponsors" and sign in with the same GitHub account. With PayPal, send USD 19 with "Zovo Pro" in the note and the key comes by email within a day.

A team of 5: USD 59 once, by card or by PayPal. Every rule and every Pro tool is on the Zovo Pro page.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.dicom-nifti-viewer and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/dicom-nifti-viewer.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What DICOM Viewer handles

What it does not do

Other options

Install counts and Open VSX status were checked on 10 November 2026. Descriptions in quotes are the extensions' own.

Questions

Should I use this or dcm2niix?

For a large study or a scripted pipeline, use dcm2niix. It is free, fast and handles compressed DICOM and BIDS. DICOM Viewer fits when you want to look at a series in VS Code, check its tags, and save that series as NIfTI.

Does CT keep Hounsfield units?

Yes. The voxels are the values the viewer shows, so CT stays in HU.

Will nibabel and ITK-SNAP read the orientation right?

The file keeps the real voxel size and the scanner orientation in sform and qform, so nibabel, ITK-SNAP, 3D Slicer and training code read it in the right place.

Is patient data sent anywhere?

No. DICOM Viewer makes no network calls and sends no telemetry. The yellow bar warns when Patient's Name or Patient ID is filled, but it is a check, not a de-identification tool.

Does it work in Cursor or Windsurf?

Cursor and Windsurf install extensions from Open VSX. Search for DICOM Viewer in their Extensions view and install it there.

More about DICOM Viewer

Read the DICOM Viewer page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.