Skip to main content

Stata DTA File Processor

This discussion focuses on the Stata DTA codec. For integrating SheetJS in a Stata extension, there is a dedicated demo.

Stata is a statistical software package. Econometricians and social scientists have used Stata for data processing and statistical analysis. Many legacy datasets are only available in Stata DTA data files.

The SheetJS DTA Codec enables websites and automated data pipelines to integrate data from DTA files.

Source code and project documentation are hosted on the SheetJS git server at

DTA support is considered experimental.

Great open source software grows with user tests and reports. Issues should be reported to the issue tracker.

Live Demo

This demo fetches a sample DTA file, parses the data using the SheetJS DTA Codec and displays the data in an HTML table using the sheet_to_html method1.

The file input element can be used to parse a file on your computer.

All work is performed in the web browser! Data never leaves your machine!

If you find any unexpected results or errors in testing, please report an issue at the issue tracker.

Live Editor