Convert SAV to CSV
How to export SPSS data sets in CSV format.

How to convert sav to csv file
- Other formats
- Rating: 1.0/5
What are .sav files?
A .sav file is most commonly associated with SPSS (Statistical Package for the Social Sciences), containing data and metadata (e.g., variable labels, value labels). Converting an SPSS .sav file to a more universally readable format like CSV typically involves using SPSS, an open-source tool like PSPP, or a programming language library (e.g., Python or R).
Using SPSS
-
Open the .sav file in SPSS:
- Launch SPSS
- Go to File → Open → Data…
- Select your .sav file
-
Export to CSV:
- Go to File → Save As…
- In Save as type, select Comma delimited (.csv)
- Choose a destination folder and filename, then Save
SPSS will remove some metadata (like labels) when saving to CSV because CSV is a plain-text format.
Using PSPP (free/open-source)
PSPP is a free alternative to SPSS that can read and save .sav files.
-
Open PSPP and import the .sav file: Go to File → Open… and select the .sav file
-
Export to CSV:
- Go to File → Save As…
- Select Comma Separated Values (.csv) under File type
- Click Save
PSPP will export the data similarly but without some of the specialized SPSS metadata.
Using R (with the haven package)
If you have R installed, you can use the haven package to read .sav files and write them out as CSV.
-
Install haven (if not installed):
install.packages("haven")
- Load your .sav file and export to CSV:
library(haven)
# Read the .sav file
df <- read_sav("path/to/yourfile.sav")
# Write the data frame to CSV
write.csv(df, "output.csv", row.names = FALSE)
Using Python (with the pyreadstat Library)
In Python, you can use the pyreadstat library to read .sav files, convert them to a pandas DataFrame, and save them as CSV.
- Install pyreadstat (if not installed):
pip install pyreadstat
- Read .sav file and convert:
import pyreadstat
# Read the .sav file
df, meta = pyreadstat.read_sav("path/to/yourfile.sav")
# Export to CSV
df.to_csv("output.csv", index=False)
Each method will produce a CSV file containing your data in plain-text format. Certain SPSS-specific features (labels, formats) will not fully carry over to CSV, as CSV does not support these metadata fields.