Open a .dta file without Stata

A .dta file is a Stata dataset. Economists, health researchers and public agencies share data this way, and nothing on Windows or Mac opens it without Stata. Here is how to look inside one for free.

Open your data file Free: every variable and the first 25 rows. SPSS and Stata files are not uploaded.

What is in a .dta file

A Stata dataset holds the variables (each with a name, a label, a storage type and a display format such as %td for dates), value label tables that give the words for coded answers, and the observations. Stata marks missing values with a dot, and with .a to .z for different kinds of missing answer. Long text is kept in strL variables.

See it in your browser

  1. Go to the SAV and DTA Viewer.
  2. Drop the .dta file on the page. Files saved by Stata 4 to Stata 18 open (file releases 104 to 119). Nothing is uploaded.
  3. The Variables tab shows each variable's label, storage type, format and value labels, free.
  4. The Data tab shows the observations with dates as dates and the missing codes as Stata writes them (., .a, .b). Turn on Show value labels for the words. The first 25 rows are free.

The whole dataset in Excel or CSV

The $19 license shows every observation and saves the data as Excel or CSV, with value labels or codes, plus a codebook. Or $7 for 24 hours, or $5 for just this file.

A file from an old Stata?

Files from Stata 4, 5, 6 and 7 open too (releases 104 to 111). Files from Stata 3 and before (releases 102 and 103) don't open here. If you can, ask the sender to save the file again from a newer Stata, or with saveold.

Other ways

Open your data file Free: every variable and the first 25 rows. SPSS and Stata files are not uploaded.

SPSS is a trademark of IBM. Stata is a registered trademark of StataCorp LLC. SAS is a registered trademark of SAS Institute Inc. Excel and Windows are trademarks of Microsoft. We are not affiliated with IBM, StataCorp, SAS Institute or Microsoft.