Free Online FreeSurfer MGH / MGZ Viewer (No Signup)

An MGZ file is a brain MRI volume in FreeSurfer’s own format: .mgh is the plain file and .mgz the same file gzipped. FreeSurfer saves every step of its processing this way, such as orig.mgz, T1.mgz, brain.mgz and aseg.mgz. View in 3D and export FreeSurfer MGH and MGZ volumes in your browser.

Also opens DWG, DXF, STEP, IGES, IFC, SKP, STL, OBJ, GLB, FBX, 3DM and other 3D/CAD files. Drop any file on the viewer.

Works directly in Chrome, Firefox, Safari, and Edge

Also from Innerscene: Circadian Lab, a free lighting calculator for room illuminance, melanopic EML, and glare.

Private by default. Files are parsed locally in your browser. Uploading is only required if you choose to share a link.

Sample: T1 brain MRI, OpenNeuro ds000117 sub-01 (Wakeman and Henson, 2015, Sci Data 2:150001), CC0. Not for diagnostic use.

What Is a FreeSurfer MGH / MGZ File?

FreeSurfer is the brain MRI analysis suite from the Martinos Center, used to measure cortical thickness and label brain structures. Its volume format, MGH (Massachusetts General Hospital), is a small binary header with the size, the data type, the voxel size and the vox2ras matrix that places the volume in scanner space, followed by the voxels. FreeSurfer almost always writes it gzipped, as .mgz, in a subject’s mri/ folder.

This viewer reads MGH and MGZ in your browser: slices in three planes, window and level, a 3D volume rendering, and a surface you can save as STL. Nothing is uploaded, and it is not for diagnostic use.

Who Uses FreeSurfer MGH / MGZ Files?

Neuroscientists and students who run FreeSurfer (recon-all, FastSurfer, SynthSeg), research assistants checking processing results, and study participants who were given their processed scan. A browser viewer helps when Freeview is not installed, on a laptop away from the lab server, or on a Chromebook or tablet.

Common Use Cases

  • Open an .mgz file without FreeSurfer or Freeview
  • Check orig.mgz, T1.mgz or brain.mgz from a recon-all run slice by slice
  • Look at the skull-stripped brain.mgz in 3D
  • Save a brain surface from brain.mgz as STL for 3D printing
  • Save an .mgz as NIfTI (.nii.gz) for FSL, SPM or 3D Slicer

Features

FreeSurfer Volumes

.mgh and gzipped .mgz files such as orig.mgz, T1.mgz, brain.mgz and aseg.mgz, read in your browser.

No FreeSurfer Needed

Look at recon-all results on any computer, Chromebook or tablet without Freeview.

True Orientation

The vox2ras matrix places the volume, so slices carry the right patient directions.

Slices in Three Planes

Axial, coronal and sagittal slices with window and level and the value under the pointer.

3D Volume

Turn the brain in 3D on your graphics card as a MIP or greyscale rendering.

Brain to STL

Save a surface of brain.mgz at a level you choose as STL, OBJ, GLB or 3MF for 3D printing.

MGZ to NIfTI

Write the volume as .nii.gz for FSL, SPM or 3D Slicer, or save the view as PNG.

Nothing Is Uploaded

The volume is read in your browser and stays on your device. Not for diagnostic use.

Compatibility & Format Notes

Files: .mgh and gzipped .mgz volumes of any FreeSurfer data type (uchar, int, short, float), such as orig.mgz, T1.mgz, norm.mgz, brain.mgz and aseg.mgz. FreeSurfer’s surface files (lh.pial, lh.white), annotations and label files are other formats and are not read here.

Orientation and views: the vox2ras matrix places the volume, so axial, coronal and sagittal slices carry true patient directions. Slices with window and level and the value under the pointer, the 3D volume on your graphics card, and the 3D surface at an automatic level or any level you type. A segmentation such as aseg.mgz shows its label numbers as grey values, without the FreeSurfer colour table.

Saving: Export saves the surface as STL, OBJ, GLB or 3MF; Save PNG saves the view and Save NIfTI the volume as .nii.gz.

Everything runs in your browser and nothing is uploaded; Share, embedding and ratings are off for medical images. Not for diagnostic use.

Embed on Your Website

Add this viewer to your own site with a single line of HTML. Click Embed in the toolbar to generate an embed code, or use the snippet below with your own file URL.

<iframe src="https://www.innerscene.com/tools/mgh-viewer?embedded=1&url=YOUR_MGH_URL" width="800" height="600" frameborder="0" allowfullscreen></iframe>

Your Files Stay on Your Computer

Your FreeSurfer MGH / MGZ files are parsed entirely in your browser. Nothing is uploaded, stored, or shared unless you explicitly click the Share button. Shared files are hosted for 90 days then deleted.

Frequently Asked Questions

▶How do I open an .mgz file without FreeSurfer?

Drop it on this page. The viewer unzips and reads it in your browser and shows the middle slice; switch planes, or open the 3D volume or 3D surface. Nothing is installed and nothing is uploaded.

▶Can I 3D print a brain from FreeSurfer?

Open the skull-stripped brain.mgz, choose 3D surface and adjust the level until the surface follows the brain, then Export it as STL or use the MGZ to STL converter. FreeSurfer’s own pial surface files give a smoother cortex, but they are a different format that this page does not read.

▶How do I convert MGZ to NIfTI?

Open the .mgz and click Save NIfTI in the medical panel: the volume is written as .nii.gz with its spacing and orientation. FreeSurfer’s own mri_convert does the same on the command line.

▶Can I use this viewer to make a diagnosis?

No. It is not a medical device and is not for diagnostic use. It is for viewing, teaching and research; ask the doctor who ordered the scan what the images show.

▶Is this MGZ viewer free?

Yes, completely free, with no signup and no watermarks. Built by Innerscene.

▶Are my files uploaded?

No. The volume is read in your browser and stays on your device. The viewer is for viewing, teaching and research, not for diagnostic use.

FreeSurfer is developed by the Laboratory for Computational Neuroimaging at the Athinoula A. Martinos Center for Biomedical Imaging. Innerscene is not affiliated with it.

Need a wellness lighting solution?
Contact our experts today!