DTA CSV
File conversion

Convert DTA to CSV

QUICK ANSWER
Is it possible to convert DTA to CSV?
Yes - DTA converts to CSV.

PondPilot (free) is the fastest route: open the .dta and export to CSV in two clicks. The main caveat is that categorical columns store numeric codes internally - enable value-label decoding before exporting to get readable text instead of numbers.

Also to CSV: HVE · XFDF · TSV

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert DTA to CSV?

A Stata .dta file is a proprietary binary statistical dataset understood by only a handful of programs, while .CSV opens in Excel, Google Sheets, every database import wizard, and virtually any data tool. Converting to CSV is the standard step for sharing a Stata dataset with collaborators who do not have a Stata licence.

How to convert DTA to CSV

Python + pandas OPEN-SOURCE

Install pandas and pyreadstat, then load with pd.read_stata('file.dta') and write with .to_csv('output.csv', index=False); add convert_categoricals=True to export value labels as readable text.

R + haven OPEN-SOURCE

Install haven, run read_dta('file.dta') to load the data, then write with write_csv() from readr; call as_factor(df) first to decode value labels to text.

Stata APP

Open the .dta in Stata and run the export delimited command in the Command window to write the CSV.

About these formats

Quality & what to watch

  • Categorical columns store numeric codes internally; without decoding they export as numbers rather than text labels - use convert_categoricals=True in pandas or as_factor() in R to fix this.
  • Variable labels (long descriptions) are metadata not supported by CSV and are dropped in the output.
  • PondPilot reads Stata formats 8 through 19, covering all versions from Stata 8 to Stata 19.

Frequently asked questions

Do I need a Stata licence to convert DTA to CSV?
No - PondPilot, Python with pandas, and R with haven are all free and do not require Stata.
Why do my categorical columns show numbers instead of labels in the CSV?
Stata stores categories as numeric codes; use convert_categoricals=True in pandas or as_factor() in R to decode them to text before exporting.
How do Stata date variables appear in the CSV?
By default they export as integer day counts from 1960-01-01; apply Stata's date format or convert them with pandas before exporting to get readable calendar dates.
What Stata format versions are supported by free tools?
haven (R) and pandas read Stata format versions 104-121, covering Stata 8 through 19.