What is the MEM file format?
.mem files are associated with the database management software FoxPro, developed originally by Fox Software and later by Microsoft as Visual FoxPro.
.mem files store memory variables and array entries created with FoxPro. They are written by the SAVE TO command and restored with RESTORE FROM. .mem files can be used as backup files; FoxPro can use them to restore session state should the need arise. Each record holds a variable name (up to ~10 characters), a type byte (C for Character, N for Numeric, L for Logical, D for Date, etc.) and the value - distinct from the table records stored in .DBF files.
.mem is a binary file format and requires a dedicated tool or hex editor to access its contents. .mem files are typically small and are used for preserving in-session variable state as a lightweight backup, rather than for formal disaster recovery. The format dates from the late 1980s and remained unchanged through Visual FoxPro 9.0; Microsoft ended FoxPro support in 2015.
Security & safety
RISK: LOWA FoxPro .mem is a passive binary data file of saved variables - it contains no executable code and does not run, so opening or inspecting it is low-risk. The only practical concern is data, not malware: a .mem may hold values a program was working with (potentially including sensitive data), so treat it as you would any application data file. Deleting a transient .mem can break a FoxPro app's saved state, so don't remove one a running application depends on. Avoid dubious "MEM file opener" download sites - the real way to read it is the FoxPro runtime or a hex editor.
Format details
in a nutshell- Generic memory dump / RAM image - Some debuggers, emulators and games write .mem as a raw memory dump or saved RAM image - a different, content-specific use unrelated to FoxPro variables.
- FoxPro/xBase variable save (Clarion can also read) - The Clarion environment can interoperate with xBase data; the dominant meaning here is the FoxPro SAVE-TO memory-variable file.
Programs that open MEM files
Technical details
deep spec| File type | Binary proprietary memory-variable dump |
| Byte order | Little-endian |
| Variable name limit | Up to 10 characters (xBase naming convention) |
| Supported data types | Character (C), Numeric (N), Logical (L), Date (D), Currency (Y) |
| Array handling | Arrays expand into consecutive per-element records within the file |
| Write command | SAVE TO <filename> in FoxPro / Visual FoxPro |
| Read command | RESTORE FROM <filename> in FoxPro / Visual FoxPro |
| Typical file size | Bytes to a few KB, scales with variable count and size |
| Checksum / integrity | None; no built-in error detection |
| Associated operating systems | DOS (FoxBASE/FoxPro), Windows (Visual FoxPro) |
| MIME type | application/octet-stream |
| File signature | No documented fixed magic bytes; identified by origin (FoxPro project context) |
| Related formats | .dbf (table data), .fpt (memo fields), .prg (program source), .dbc (database container) |
| Released | Late 1980s with FoxBASE/FoxPro (xBase family); carried into Visual FoxPro (1995-2007) |
| Latest version | Visual FoxPro 9.0 (2004); VFP support ended 2015 - format unchanged since |
| Specification | learn.microsoft.com |