.SPR

SPR File

FoxPro Generated Screen Program
Ask a question
QUICK ANSWER

An SPR file is a plain-text FoxPro/xBase program that GENSCRN generated from a FoxPro 2.x screen design (.scx). Any text editor opens it for reading. To run it you need Visual FoxPro, which is now discontinued. The .spr extension is also used by unrelated formats - most commonly game sprite images - so confirm the file is text before treating it as FoxPro code.

Developer: Microsoft (originally Fox Software) Category: Developer Files MIME: text/plain
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jul 21, 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 SPR file format?

.spr is a developer file format used to store generated screen program code for a FoxPro form. Rather than being hand-written, an .spr is produced automatically by the GENSCRN code generator from the visual screen design stored in an .SCX file. The generated file contains xBase commands - @ row,col SAY/GET layout statements, a READ command to activate user input, and window definitions - that together implement the form's behaviour at runtime. FoxPro screens can be invoked directly or called from a FoxPro menu or application. The companion compiled output is an .SPX file.

Visual FoxPro was developed by Microsoft, originally created by Fox Software. The package includes a fully-functional programming language, an SQL-compatible database engine, and several database communication interfaces. The .spr workflow was introduced in FoxPro 2.x (early 1990s) and was superseded in Visual FoxPro 3.0 (1995), which adopted native .scx-based form objects without a separate code-generation step. Visual FoxPro's extended support officially ended in 2015, making .spr a legacy developer artifact. Being plain ASCII text, it can be opened in any text editor.

Security & safety

RISK: LOW

A FoxPro .spr is plain-text source code - it cannot execute on its own (it needs the FoxPro runtime to run), so opening one in a text editor to read it is safe. The only real caution is the heavy extension overloading: a file named .spr might actually be a game sprite image or other binary, so confirm what you have before treating it as FoxPro code. As with any source, review it before running an unfamiliar legacy app it belongs to.

Format details

in a nutshell
FULL NAMEFoxPro Generated Screen Programaka FoxPro screen program, FoxPro form source
DEVELOPERMicrosoft (originally Fox Software)since Early 1990s (FoxPro 2.x screen designer / GENSCRN generator)
MIME TYPEtext/plain
TYPEPlain-text xBase/FoxPro program code generated from a screen (.scx) design file
This extension is also used by…
  • Sprite / bitmap image (.spr) - Several games and graphics engines (e.g. GoldSrc/Half-Life, Capcom tools) use .spr for sprite images - a binary image format unrelated to the FoxPro source file.
  • Lotus / WordPerfect spreadsheet-print or DESQview file - Older office software used .spr for assorted print/spreadsheet data; obsolete and unrelated to FoxPro.

Programs that open SPR files

Windows2 apps
Visual FoxPro Paid Open the .spr in the VFP IDE to view/edit the generated code; use DO file.spr to run it (legacy 2.x project). Note VFP is discontinued (support ended 2015).
Any text editor (Notepad++ / VS Code) Open-source Open the .spr as plain text to read the generated FoxPro/xBase source - best free way to just inspect it.
macOS1 app
Any text editor (VS Code, BBEdit) Free Open the .spr as text to read the FoxPro source. (No native FoxPro runtime on modern macOS.)
Linux1 app
Any text editor (VS Code / gedit) Free Open the .spr as text to inspect the code. To run a legacy FoxPro app, use a DOS/Windows emulator (DOSBox/Wine).

Technical details

deep spec
File classPlain-text xBase/FoxPro program source code
Generated by`GENSCRN` - FoxPro's screen code generator; produces `.spr` from a `.scx` screen design file
Character encodingASCII / OEM code page (DOS-era FoxPro; typically CP437 or CP850)
Line endingsDOS CRLF (`\r\n`) as produced by FoxPro 2.x on MS-DOS and Windows
Compiled counterpart`.spx` - the compiled FoxPro object produced from the `.spr` source
Visual design sourceBinary `.scx` (DBF-format table) + `.sct` (memo) file pair - the inputs to `GENSCRN`
Key xBase commands`@ row,col SAY/GET` (field layout), `READ` (activates input), `DEFINE WINDOW`, `ACTIVATE WINDOW`
Typical file sizeA few KB to tens of KB depending on form complexity
Runtime invocation`DO formname.spr` from the FoxPro command window or a calling program
Supported platformsMS-DOS, Windows (3.x / 9x / NT), classic Mac OS (FoxPro for Macintosh)
Superseded byVisual FoxPro 3.0 native `.scx` form objects - no separate code-generation step required
MIME type`text/plain` (informal: `application/x-foxpro`)
Binary signatureNone - `.spr` is plain text with no magic bytes; typically begins with a generated comment header
File pairingOne `.spr` pairs with a `.scx`/`.sct` design pair and a `.spx` compiled object
Technology lineagePart of the xBase family (dBASE → FoxBase → FoxPro); screen-generation syntax compatible with earlier xBase dialects
ReleasedEarly 1990s (FoxPro 2.x screen designer / GENSCRN generator)
Latest versionFoxPro 2.6 (1994); deprecated in Visual FoxPro 3.0+ in favor of native .scx forms
Specificationen.wikipedia.org

SPR conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SPR 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 SPR files.

Frequently asked questions

What is an SPR file in FoxPro?
It's a generated screen program - FoxPro/xBase source code that GENSCRN produced from a FoxPro 2.x form design (.scx). It draws the data-entry screen and handles its input; the compiled version is .spx.
How do I open an SPR file?
Open it in any text editor to read the code, since it's plain text. To run or rebuild it you need Visual FoxPro (now discontinued), where DO file.spr executes the generated screen program.
What's the difference between SPR, SCX and SPX?
.scx (with .sct) is the visual form design, .spr is the readable program GENSCRN generates from it, and .spx is the compiled object that actually runs. In FoxPro 2.x all three coexist.
Can I still run FoxPro SPR files?
Only with Visual FoxPro or a FoxPro 2.x runtime, both long discontinued (VFP support ended 2015). Most people today only read .spr code to maintain or migrate a legacy application, often via a DOS/Windows emulator.
My SPR file isn't FoxPro code - what else could it be?
The .spr extension is overloaded. It's also used for game sprite (bitmap) images (e.g. Half-Life/GoldSrc) and some old office print files. If the file looks like binary gibberish in a text editor, it isn't a FoxPro screen program.

References

1Microsoft - Visual FoxPro documentation (archive)learn.microsoft.com
2Wikipedia - FoxPro / Visual FoxProen.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.BINCD/DVD Disc Image (BIN/CUE)
8.MDMarkdown Document
9.RPMSGRestricted Permission Message
10.XDWDocuWorks Document

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

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

Open the toolbox

Browse file extensions A-Z