.SPS

SPS File

SPSS Syntax File
Ask a question
QUICK ANSWER

An SPS file is an SPSS syntax script - a plain text file containing IBM SPSS Statistics commands for statistical analysis and data manipulation. Open and run it in IBM SPSS Statistics (File > Open > Syntax). To just read the code, any text editor works. You need SPSS (paid) to execute the commands.

Developer: IBM (SPSS Statistics); originally SPSS Inc. Category: Data Files MIME: text/plain
OPENS ON Windows macOS Linux
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 16, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SPS file format?

.sps is an IBM SPSS Statistics syntax file - a plain-text script written in the SPSS command language. Each command block ends with a period (.), and the language is case-insensitive. Syntax files record every step of a statistical analysis: loading data, transforming variables (RECODE, COMPUTE, FILTER), and running procedures such as FREQUENCIES, REGRESSION, and ANOVA.

A primary benefit of .sps files is reproducibility: the same command sequence can be re-run on updated data to produce identical results. SPSS auto-generates syntax whenever a user clicks Paste instead of OK in any dialog box, making it easy to capture GUI-driven analyses as reusable scripts.

The files are UTF-8 encoded in SPSS 24 and later; older files may use Latin-1 or Windows-1252. Modern versions may insert * Encoding: UTF-8. as the first line to declare the encoding. Because the format is plain text, .sps files can be opened and edited in any text editor without installing SPSS.

Syntax is largely backward-compatible across all IBM SPSS Statistics releases; most scripts written for earlier versions run without changes in IBM SPSS Statistics v30 (2024), the current release. Statistical data is typically stored in companion .sav files.

Security & safety

RISK: LOW

An SPSS syntax file is plain text with no executable payload outside the SPSS environment. It can only run inside IBM SPSS Statistics. A malicious .sps file could theoretically delete files (using HOST commands to run OS commands) or exfiltrate data via SPSS's file-write commands, but this requires the user to open and run it in SPSS. Review unfamiliar .sps files in a text editor before executing.

Format details

in a nutshell
FULL NAMESPSS Syntax Fileaka SPSS syntax script, SPSS command file
DEVELOPERIBM (SPSS Statistics); originally SPSS Inc.since 1968 (SPSS software); .sps extension formalized in SPSS for Windows, early 1990s
CATEGORYData Files
MIME TYPEtext/plain
TYPEPlain text script (SPSS command syntax language)
This extension is also used by…
  • Atari Spectrum 512 Smooshed Image - The Atari ST graphics application Spectrum 512 used .sps for compressed/smooshed images (RLE-compressed 512-color bitmaps, 320x199 px); entirely unrelated to SPSS.

Programs that open SPS files

Windows3 apps
Notepad Open-source Open the .sps file to read or edit the syntax as plain text. No syntax highlighting built-in but user-defined language files for SPSS exist.
IBM SPSS Statistics Paid File > Open > Syntax, select the .sps file. The Syntax Editor opens; click Run > All to execute all commands.
Visual Studio Code Open-source Open the .sps file to view and edit; treat as plain text.
macOS1 app
IBM SPSS Statistics Paid File > Open > Syntax, select the .sps file and run via the Syntax Editor.
Linux1 app
IBM SPSS Statistics Paid SPSS Statistics is available for Linux (RHEL/Ubuntu); open via File > Open > Syntax.

Technical details

deep spec
Language typeSPSS command syntax language - keyword-driven, case-insensitive, one command block per statement
Statement terminatorEach command block ends with a period (`.`)
EncodingUTF-8 (SPSS 24+); Latin-1 / Windows-1252 in older files; declared via `* Encoding: UTF-8.` comment line
Data manipulation commands`RECODE`, `COMPUTE`, `FILTER`, `SELECT IF`, `SORT CASES`, `AGGREGATE`
Statistical analysis commands`FREQUENCIES`, `DESCRIPTIVES`, `CROSSTABS`, `REGRESSION`, `ANOVA`, `FACTOR`, `CLUSTER`
Reproducibility mechanismExecuting the same `.sps` file on identical data produces identical output - core use case in research transparency
Auto-generationSPSS generates `.sps` syntax automatically when the user clicks **Paste** instead of **OK** in any dialog box
Backward compatibilityCommand syntax largely compatible across all SPSS releases since the 1990s; few commands deprecated
Companion data formatStatistical data stored in `.sav` files; syntax typically references `.sav` for `GET FILE` and `SAVE` commands
Output formatAnalysis results written to `.spv` viewer files; exportable to PDF, Excel, or Word
Editing without SPSSFully readable and editable in any plain-text editor - no SPSS installation required
Typical file size1 KB - 5 MB; most syntax files are small; large batch-processing scripts can be bigger
Released1968 (SPSS software); .sps extension formalized in SPSS for Windows, early 1990s
Latest versionCurrent with IBM SPSS Statistics (v30 as of 2024)
Specificationwww.ibm.com

SPS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SPS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SPS files.

Frequently asked questions

How do I open a .sps file?
In IBM SPSS Statistics: File > Open > Syntax, then select the file. To just read it, open it in any text editor - it is plain text.
Can I open a .sps file without SPSS?
Yes - open it in any text editor (Notepad, VS Code) to read the code. You need SPSS only to run the commands.
What is the difference between .sps and .sav?
.sav is an SPSS data file (the actual dataset). .sps is a syntax script that contains commands to work with a .sav or other data. They are complementary: the script tells SPSS what to do; the .sav is the data it works on.
How do I run an SPSS syntax file?
Open it in SPSS's Syntax Editor (File > Open > Syntax), then Run > All to execute all commands, or select specific lines and Run > Selection.
Is SPSS free?
IBM SPSS Statistics is paid software with subscription pricing. A free trial is available. PSPP is a free open-source alternative that understands most SPSS syntax commands.

References

1IBM SPSS Statistics documentationwww.ibm.com
2IBM SPSS Statistics Command Syntax Reference (v29)public.dhe.ibm.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.EXEWindows Executable (Portable Executable)
5.RPMSGRestricted Permission Message
6.PARTPartial Download File
7.JPGJPEG Image
8.ICSiCalendar data file
9.BINCD/DVD Disc Image (BIN/CUE)
10.JSONJavaScript Object Notation file

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z