Skip to content

DICOM medical scan viewer and PHI anonymizer

View DICOM medical slices with interactive radiologic WW/WL windowing offline, and strip identifying patient, study, and private tags before sharing teaching or research scans.

Your files are open only in this tab. Nothing is uploaded.

Informational viewer only. Not cleared for primary clinical diagnosis or medical treatment decisions.

DICOM (.dcm) medical imaging file

Inspects Part 10 tags, adjusts Window Width / Level locally, and de-identifies PHI headers before sharing.

Drop a .dcm DICOM study file here

Patient headers and pixel arrays stay strictly inside your browser.

How to use DICOM viewer & anonymizer

  1. Load a local DICOM slice or synthetic demo. Drop a .dcm or .dicom file, click Choose DICOM file, or click Load sample DICOM to inspect the 128x128 synthetic head CT phantom.
  2. Adjust CT windowing for visual inspection. Select Brain, Soft Tissue, Lung, Bone, Auto window, or Invert, or drag horizontally and vertically across the slice canvas to tune WW and WL.
  3. Audit patient metadata inside Tag inspector. Switch to Tag inspector, toggle PHI only, or search by hex tag and attribute name to locate identifying strings before sharing.
  4. Scrub identifiers and download audit logs. Open Anonymize PHI, set Replacement patient alias, toggle date year retention or odd-group tag removal, click Anonymize DICOM headers, and download the .dcm plus JSON or CSV audit.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

Parsing DICOM Part 10 headers locally for non-diagnostic use

Medical imaging datasets routinely embed full patient names, birth dates, medical record numbers, and clinical facility addresses inside structured binary metadata. Executing parseDicomElements inside image.worker.ts inspects .dcm and .dicom scans completely offline so sensitive patient records never leave your workstation.

Clinical disclaimer: This browser viewer is strictly informational and is not cleared for clinical diagnosis, screening, or treatment decisions. Clinical medical images must be reviewed exclusively on cleared PACS or diagnostic workstations calibrated to clinical radiology standards.

Checking the 128-byte preamble and local pixel privacy

Every compliant ISO 12052 archive starts with at least 132 bytes containing a 128-byte preamble followed by the ASCII DICM marker defined in the DICOM Standard PS3.10 Media Storage specification. Our parser also accepts preambless datasets beginning directly at Group 0002 or Group 0008 tags before extracting all header attributes with 0 bytes uploaded.

When working outside clinical radiology workflows with consumer PNG or JPEG attachments from a report, you can also strip hidden EXIF metadata from standard photos. Both image tools run solely in client browser memory with zero telemetry derived from user files.

Inspecting sample CT scans without transmitting medical files

Click Load sample DICOM to generate sample-ct-phantom.dcm, a 128 px square synthetic axial head CT dataset with 16 bits allocated and 12 bits stored, carrying synthetic patient DOE^JANE and odd-group block (0009,0010). Its calibrated values span -1000 air, +12 ventricle fluid, +38 parenchyma, +74 hyperdense focus, and +850 bone via RescaleIntercept = -1024.

How does interactive WW/WL windowing map Hounsfield values?

Interactive windowing multiplies raw stored pixels by RescaleSlope and adds RescaleIntercept before linearly mapping [WL - WW/2 .. WL + WW/2] onto 0..255 display levels per the DICOM Standard PS3.3 VOI LUT windowing specification. Clicking Brain, Soft Tissue, Lung, or Bone updates window width and level instantly on the canvas.

Switching CT radiologic presets and pointer-drag adjustments

Standard clinical teaching workflows adjust Window Width (WW) to control tissue contrast scale and Window Level (WL) to shift center brightness. Dragging horizontally across the slice shifts width by dx * 2, while vertical drags adjust center by -dy * 2 alongside one-click Auto window and Invert controls.

  • Brain (40 / 80): Narrow 80 width centered at 40 separates gray and white matter structures on head CT slices cleanly.
  • Soft Tissue (50 / 350): Moderate 350 width highlights solid organ attenuation differences across abdominal and mediastinal studies.
  • Lung (-600 / 1500): Broad 1500 width centered at -600 reveals fine pulmonary vessels and bronchial walls simultaneously.
  • Bone (300 / 1800): Wide 1800 window isolates cortical fracture lines and trabecular structures without washing out bone contrast.

Stepping multi-frame stacks and exporting PNG or JPG slices

Multi-frame cine and stacked volumes display a Frame range slider showing active slice position out of total frame count. Once contrast looks balanced, click Save slice PNG for lossless RGBA educational figures or Save slice JPG (94 quality) before reviewing teaching flashcards inside our offline Anki flashcard archive inspector.

De-identifying patient tags under DICOM PS3.15 rules

Switching to Tag inspector lists every parsed element with a PHI only checkbox that isolates Group 0010 and known identifiers, while Anonymize PHI scrubs elements per the DICOM Standard PS3.15 Attribute Confidentiality Profiles. Each scrubbed export updates Group 0002 lengths cleanly and outputs downloadable JSON and CSV audit logs.

DICOM element or group Default anonymization action Optional control behavior Compliance notes
(0010,0010) & (0010,0020) Replaced with alias (ANONYMOUS) Replacement patient alias input Truncates ID to 16 chars
Study / Series / Content Dates Masked to 19000101 string Retain study year as YYYY0101 Study times zeroed 000000
Group 0008 & 0010 PHI tags Cleared to empty length 0 Always active in Basic Profile Removes accession, site, DOB
Odd-group private elements Stripped prior to 7FE0,0010 Remove odd-group private tags Drops vendor blocks like 0009
SOP, Study, Series UIDs Regenerated 2.25.<128-bit> UID Uses crypto.getRandomValues Sets (0012,0062) to YES

After scrubbing imaging scans with Anonymize DICOM headers, clinical educators sharing companion PDF case histories should also permanently mask patient identifiers before exporting reports. Downloading both Download JSON audit and Download CSV audit documents every modified element for institutional compliance checks.

Transfer syntaxes, RLE decoding, and Big Endian boundaries

Medical scanners write voxel arrays across diverse byte orderings and lossless compression schemes defined in the DICOM Standard PS3.5 Transfer Syntax encoding. Knowing which transfer syntaxes decode pixels in-browser versus preserving compressed fragments helps avoid workflow surprises during dataset triage.

Handling Implicit, Explicit, and RLE Lossless streams

The decoder reads 1.2.840.10008.1.2 (Implicit VR Little Endian), 1.2.840.10008.1.2.1 (Explicit VR Little Endian), 1.2.840.10008.1.2.2 (Explicit VR Big Endian viewing), and 1.2.840.10008.1.2.5 (RLE Lossless 64 bytes header PackBits decoding). During de-identification, Implicit Little Endian headers automatically normalize to Explicit Little Endian 1.2.840.10008.1.2.1 with recomputed (0002,0000) meta length.

Explicit Big Endian 1.2.840.10008.1.2.2 files render pixels cleanly for visual review, yet Anonymize DICOM headers intentionally stops Big Endian rewriting with an error instructing you to convert to Little Endian first. Encapsulated JPEG or JPEG 2000 pixel frames cannot decode on the canvas offline, though Tag inspector and Anonymize PHI still scrub headers and preserve compressed fragments untouched.

Pairing de-identified teaching scans with research notes

Academic teams compiling de-identified radiology series for teaching repositories or systematic case reviews often normalize reference bibliographies alongside imaging downloads. Pairing scrubbed DICOM outputs with RIS & EndNote to BibTeX keeps both visual case archives and citation managers completely offline inside browser memory.

Questions

Is this browser DICOM viewer cleared for clinical diagnosis or treatment decisions?

No. This browser DICOM viewer is an informational and educational inspection tool only. It is not FDA cleared or CE marked for primary clinical diagnosis, screening, or treatment decisions. All clinical imaging studies must be interpreted exclusively on cleared PACS or diagnostic radiology workstations.

How does the DICOM anonymizer satisfy PS3.15 Basic Confidentiality Profile rules?

The worker clears institution, physician, accession, birth date, sex, age, and weight tags while replacing PatientName, PatientID, and regenerating 2.25.<128-bit> SOP, Study, and Series UIDs. It sets PatientIdentityRemoved to YES and records DeidentificationMethod as FreeToolsDock PS3.15 Basic Profile.

Why can Tag inspector and Anonymize PHI run on compressed scans that do not preview?

The browser parser decodes uncompressed Implicit/Explicit endian streams and RLE Lossless pixels directly, whereas encapsulated JPEG or JPEG 2000 pixel fragments require external codec decoders. Even when preview rendering stops on encapsulated compressed scans, header parsing, Tag inspector, and Anonymize PHI still scrub tags and preserve pixel fragments verbatim.

Why should odd-group private DICOM tags be removed before sharing teaching files?

Scanner manufacturers and PACS gateways store proprietary metadata inside odd-numbered groups such as (0009,0010), which sometimes contain unmasked patient names, clinic site labels, or device serials. Keeping Remove odd-group private tags enabled drops every odd group element below pixel data safely.

How do CT presets like Brain, Lung, and Bone transform raw integer pixels?

The renderer multiplies stored 8-bit or 16-bit integer pixels by RescaleSlope and adds RescaleIntercept to compute calibrated scalar values such as Hounsfield Units. Linear Window Width and Window Level boundaries then map those diagnostic ranges smoothly into 0 through 255 grayscale canvas intensities.

What audit files are created alongside the anonymized .dcm download?

Alongside Download anonymized .dcm, you can export Download JSON audit and Download CSV audit. Both audit logs record every removed, masked, or regenerated tag hex key alongside its old value, replacement value, and action taken without touching external networks.

Updated