SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files)

SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files), a VS Code extension by Zovo

Zovo Pro: USD 19 once, every Zovo tool. Export, Codebook and Crosstab are Pro, with 3 free tries each; viewing data stays free.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-spss-stata-viewer, version 0.1.1.

Open SPSS .sav and .zsav, Stata .dta and SAS transport .xpt data files in a VS Code tab, without SPSS, Stata or SAS installed. See the data in a fast grid with value labels, variable labels, missing values and dates, then sort, filter, summarize and copy. Read-only, no network, millions of rows.

SPSS viewer: a survey file in the data grid with value labels on, a filter on the region column and the row numbers from the file

Questions people ask

Is SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files) free?

Yes. SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files) is free and MIT licensed.

How do I install SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files)?

Click "Install in VS Code" above, or search for zovo.zovo-spss-stata-viewer in the Extensions view.

What you get for free

The Variables tab of a Stata file: labels, storage types, display formats and value labels of each variable

Zovo Pro tools

Three tools for analysts and researchers, in the toolbar of the viewer and the Command Palette. Each has 3 free tries on your computer; a try counts only when the file is written or the crosstab is on screen. Escape or Cancel never uses a try.

Zovo Pro is USD 19 once and turns on the Pro tools of every Zovo extension. When the free tries are used, the tool shows the ways to pay: by card, GitHub Sponsors or PayPal, or enter a key you already have. Nothing about Pro shows when you open a file. The setting statsViewer.showProTools hides the three buttons.

A crosstab of satisfaction by region with row percentages and the chi-square test

Supported files

FormatFilesRead
SPSS system file.sav (uncompressed and bytecode compressed), .zsav (zlib)Variables, long names, labels, value labels (also for long strings), user-defined missing values, very long strings (over 255 characters), measure levels, the encoding record, documents, the weight variable
Stata.dta releases 113, 114, 115 (Stata 8 to 12), 117 (Stata 13), 118 and 119 (Stata 14 to 18)Variables, labels, value labels, strL long strings, extended missing values .a to .z, display formats and dates, either byte order
SAS transport.xpt version 5 (the format of FDA submissions) and version 8 (long names and labels)Variables, labels, formats, IBM floating point numbers, missing values .A to .Z and ._. A file with several datasets shows the first one and names the others on the Info tab

Not read: SAS .sas7bdat files, SPSS portable .por files and Stata files older than release 113 (Stata 7 and before).

Open a file

Safe with any file

Commands

CommandWhat it does
SPSS & Stata Viewer: Open in SPSS & Stata ViewerOpen a data file in the viewer
SPSS & Stata Viewer: Open a sample SPSS fileOpen the bundled sample survey
SPSS & Stata Viewer: Export data to CSV, Excel or JSON (Pro)Export the current view
SPSS & Stata Viewer: Write a codebook (Pro)Codebook as Markdown, HTML or CSV
SPSS & Stata Viewer: Crosstab with chi-square (Pro)Crosstab two variables

Settings

SettingDefaultWhat it does
statsViewer.showProToolstrueShow the Export, Codebook and Crosstab buttons
statsViewer.showSupportLinkstrueShow the small links at the bottom of the viewer
statsViewer.askForRatingtrueAsk once, after a few days of use, whether you want to rate the extension

Limits

Privacy

No network requests and no telemetry. The files you open stay on your computer.

Install SPSS Viewer & Stata Viewer (SAV, DTA, XPT Files)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zovo-spss-stata-viewer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-spss-stata-viewer, version 0.1.1.

Source code and issues are on GitHub.

All our VS Code extensions

Zovo Pro and support

Zovo Pro: USD 19 once, every Zovo viewer. It turns on the Pro tools in this extension and in the other Zovo extensions you use. The free features stay free.

After a card payment your license key shows on the next page. Paste it with the command "Zovo Pro: Enter a key".

You can also support the work with no Pro:

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.