viewhack

Open an SPSS (.sav) or Stata (.dta) data file without SPSS or Stata

Sent a survey dataset, downloaded one from a data archive, or left with files from a licence that ran out? Drop the .sav, .zsav or .dta here to see the cases as a table and every variable with its label, value labels and missing-value codes, then save the whole file as CSV, with the labels or with the raw codes.

The file is read on your device. It is never uploaded.

What it shows

What it cannot do

Useful to know about SPSS and Stata files

How it works

The file is read in this tab by viewhack's own SPSS and Stata readers, written for this site from PSPP's description of the SPSS system file format and Stata's published description of the .dta format (no permissively licensed JavaScript reader existed). The SPSS reader walks the dictionary records (variables, value labels, documents, long names, very long strings, encoding), then undoes the bytecode compression case by case; for a .zsav it first unpacks the zlib blocks with fflate 0.8.3 (MIT), served from this site. The Stata reader follows the file's sections, from the header to the value-label tables. Nothing is sent anywhere, and nothing is kept once you close the tab.