DTA XLSX
File conversion

Convert DTA to XLSX

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

PondPilot (free) is the quickest route: open the .dta and export to Excel in a few clicks. Check the output to confirm categorical columns exported as readable labels rather than numeric codes before sharing.

Also to XLSX: TSV · TMX · SSP

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 XLSX?

Stata .dta is a proprietary binary format that requires a paid licence to open natively, while .XLSX opens in Excel, Google Sheets, and any modern spreadsheet. Converting to XLSX is the standard way to share a Stata dataset with collaborators who use Excel.

How to convert DTA to XLSX

Python + pandas OPEN-SOURCE

Install pandas and openpyxl, then load with pd.read_stata('data.dta') and write with .to_excel('data.xlsx', index=False); verify that convert_categoricals=True is active for readable label text.

Stata APP

Open the .dta in Stata and run export excel with the firstrow(variables) option in the Command window to write the XLSX file with column headers.

About these formats

Quality & what to watch

  • Value labels (e.g. 1 = Male) may export as numeric codes depending on the tool - verify categorical columns in the output before sharing.
  • Variable labels are metadata not supported by XLSX and are dropped unless manually added as a separate row or sheet.
  • Excel holds 1,048,576 rows per sheet; large datasets may exceed this limit.

Frequently asked questions

Do I need a Stata licence to export DTA to XLSX?
No - PondPilot and Python with pandas are both free and do not require Stata.
How are Stata date variables represented in the XLSX?
Unless you apply a date format first, they export as integer day counts from 1960-01-01; format them in Stata or convert them in pandas to get readable dates in Excel.
Why are my categorical columns showing numbers in Excel?
Stata stores categories as numeric codes; ensure convert_categoricals=True is active in pandas to decode them to text.
What if my dataset has more than 1 million rows?
Excel's 1,048,576-row limit per sheet applies; for very large datasets consider splitting the data or exporting to CSV instead.