Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>ROOT Viewer: CERN ROOT FilesNew to Visual Studio Code? Get it now.
ROOT Viewer: CERN ROOT Files

ROOT Viewer: CERN ROOT Files

Zovo

| (0) | Free
| Sponsor
ROOT viewer for VS Code: open CERN .root files offline. Browse the key tree with folders, draw TH1, TH2, TH3 histograms and TGraph plots with the stats box, log scale and zoom, list TTree branches with types and entries, and draw a branch histogram. No account, no network.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ROOT Viewer for CERN ROOT files

Open CERN .root files in VS Code and look at histograms, graphs and trees without leaving the editor.

A dimuon mass histogram drawn in the ROOT Viewer, with the key list, the stats box and the Zovo Pro tools in the toolbar

Free, offline, no account.

  • Opens .root files with a click: the key list shows every folder (TDirectory) and object, with its class.
  • Draws TH1, TH2 and TH3 histograms, TProfile and TGraph plots, with ROOT's own look and the stats box (entries, mean, RMS).
  • Log X, Log Y and Log Z, zoom by dragging on an axis or by typing an x range, and Unzoom.
  • TTree branch list with the type, entries and leaf of every branch; click a branch to draw its histogram.
  • A draw option field for the drawing library (hist, e1, colz, lego2, box ...).
  • Reads only the parts of the file you look at, so big files open quickly. Reads ZLIB, LZ4, LZMA and ZSTD compressed files.
  • No network: the ROOT reader ships inside the extension and nothing is sent anywhere.

Zovo Pro: USD 19 once (team of 5: USD 59) unlocks the Pro tools in every Zovo extension. Each tool has 1 free try:

  • Export a histogram or graph: CSV with every bin (edges, center, content, error) or point, or the drawing as PNG or SVG.
  • Export TTree branches to CSV: pick the branches; one row per entry, every entry of the tree.
  • Compare two ROOT files: matches histograms and graphs by path, draws them on top of each other and saves a Markdown report with entries, mean, RMS, chi2/ndf and KS distance.
  • Batch export every histogram: every histogram and graph in every folder written as CSV, PNG or SVG files, with an index.csv.

Made by Zovo.

How to use

  1. Click a .root file in the Explorer. It opens in the ROOT Viewer. Right-click a file and pick Open in ROOT Viewer if another editor opened it.
  2. Click an object in the key list to draw it. Click a folder to open it.
  3. Use Log X, Log Y, Log Z and Stats in the toolbar. Drag on an axis to zoom, or type an x range and press Zoom. Unzoom shows the full range.
  4. Click a TTree to see its branches. Click a branch to draw its histogram. The first 1,000,000 entries are drawn (setting rootViewer.maxTreeEntries).
  5. To try it with no file of your own, run ROOT Viewer: Open the Sample Dimuon Run (ROOT file) from the Command Palette.

The Pro tools are in the viewer toolbar, the editor title menu, the Command Palette (ROOT Viewer: ... (Pro)) and the Explorer right-click menu of a .root file.

What it reads

  • ROOT files written by ROOT and by other tools that write the ROOT format, with ZLIB, LZ4, LZMA or ZSTD compression or none.
  • Histograms TH1, TH2, TH3 (C, S, I, F, D, L), TProfile, TProfile2D; graphs TGraph, TGraphErrors, TGraphAsymmErrors, TGraph2D; TTree and TNtuple; TDirectory folders.
  • RNTuple data is not listed as a tree.

Settings

  • rootViewer.statsBox: show the stats box when a histogram opens (default on).
  • rootViewer.maxTreeEntries: most entries read to draw a branch histogram (default 1,000,000).
  • rootViewer.maxFileMB: largest file it opens (default 4096 MB).
  • rootViewer.showProTools: show the Zovo Pro tools (default on).
  • rootViewer.showSupportLinks: the small Rate, More free tools and Zovo Pro links under the viewer.

Privacy

The extension makes no network request. The ROOT reader runs inside the viewer and reads the file from your disk through VS Code. Nothing about your files or your use is sent anywhere.

Credits

Reading and drawing use JSROOT (MIT license), shipped unchanged in lib/jsroot. See THIRD-PARTY-NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft