.SFX

SFX File

Self-Extracting Archive
Ask a question
QUICK ANSWER

An SFX file is a self-extracting archive - a ZIP, RAR, or 7z bundle with a built-in extractor so it unpacks without any archiver installed. On Windows, double-click to run it, or right-click and open in 7-Zip or WinRAR to inspect the contents first. Because an SFX is an executable, treat one from an unknown sender the same as any unknown .exe.

Developer: Various (PKWARE, WinRAR/win.rar GmbH, 7-Zip/Igor Pavlov, WinZip) Category: Compressed Files MIME: application/x-msdownload
OPENS ON Windows macOS Linux
Related: .RAR · .ZIP · .Z01 · .7Z

On this page

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

.sfx is a self-extracting archive format. .sfx files store compressed data together with the extraction code needed to unpack it, so the archive decompresses itself without any additional software on the target machine. On Windows, the finished self-extractor is a standard PE executable - its first two bytes are MZ, the normal Windows executable header - with the compressed payload appended after the extractor stub. The stub locates the archive data via the embedded archive's own trailing signature.

It is worth noting that no additional files can be added to such an archive once it has been created. The compression algorithm depends on the archiver used to build it: common choices include DEFLATE (.ZIP), RAR (.RAR), or LZMA/LZMA2 (.7Z).

Most archiving and compression tools offer the option to create self-extracting archives. The most popular finished form is an .EXE file; a bare .sfx file typically denotes the WinRAR SFX *module* (the stub used to assemble a self-extractor), rather than the finished archive itself. When a .sfx file cannot be extracted by double-clicking, renaming it to .exe and running it - or opening it directly in 7-Zip or WinRAR without executing it - usually resolves the problem.

.sfx files are typically blocked by mail servers when attached to email messages due to their executable nature. For the same reason, treat any .sfx or self-extracting .exe from an untrusted source exactly as you would any unknown executable. Real archivers such as 7-Zip and WinRAR can open the embedded archive payload without running the file, which is the safest approach with unfamiliar sources.

Security & safety

RISK: HIGH

An SFX is executable code, which makes it a classic malware delivery method: attackers disguise droppers as harmless self-extracting archives, and some abuse WinRAR SFX scripts to silently run commands after extraction (a known living-off-the-land technique). Rules: never double-click an SFX from an unknown sender; open it read-only in 7-Zip or WinRAR to inspect the payload first; scan with antivirus; and be wary of SFX 'comment'/setup scripts that auto-launch a program. A signed installer from a vendor's official site is fine; an unexpected .exe in an email is not.

Format details

in a nutshell
FULL NAMESelf-Extracting Archiveaka Self-extracting compressed archive, SFX archive
DEVELOPERVarious (PKWARE, WinRAR/win.rar GmbH, 7-Zip/Igor Pavlov, WinZip)since Early 1990s (DOS-era self-extracting ZIP/ARJ archives)
MIME TYPEapplication/x-msdownload
TYPEExecutable wrapper around a compressed archive (binary)
This extension is also used by…
  • BlackBerry Theme / OTA package fragment - Some BlackBerry and other vendor toolchains used .sfx for self-extracting resource bundles.
  • Game/engine self-extracting data blob - Occasionally an installer or patch tool names its self-extracting payload .sfx instead of .exe.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
4D5A
ASCII
MZ
A self-extracting archive on Windows is a normal PE executable, so it begins with "MZ" (4D 5A) like any .exe; the compressed payload (ZIP/RAR/7z data) is appended after the extractor stub and located via the archive's own trailing signature. The bare ".sfx" extension usually denotes a WinRAR SFX *module* (the stub used to build a self-extractor), not the finished archive - distinguish by context.

Programs that open SFX files

Windows4 apps
WinZip Paid Open the self-extractor in WinZip to view/extract entries, or use WinZip Self-Extractor to create them.
WinRAR Paid Right-click > Open with WinRAR to browse and extract the contents; WinRAR also builds SFX archives (Create SFX archive).
7-Zip Open-source Right-click the SFX > 7-Zip > Open archive to inspect/extract the payload WITHOUT running it. The safe way to open an untrusted SFX.
Windows (run directly) Built-in If you trust it, double-click to run the extractor and follow the prompt for a destination folder.
macOS2 apps
The Unarchiver Free Open the Windows SFX as a plain archive (it reads the embedded ZIP/RAR/7z) without running Windows code.
Keka Open-source Drag the SFX onto Keka to extract the embedded archive safely on macOS.
Linux1 app
7-Zip / p7zip Open-source Run 7z x file.sfx (or 7z l to list) to extract the payload without executing the Windows stub.

Technical details

deep spec
Format typeExecutable wrapper (PE/COFF stub) around a compressed archive
Magic bytes4D 5A ("MZ") at offset 0 - standard Windows PE executable header
EncodingBinary
Byte orderLittle-endian
CompressionInherited from embedded archive: DEFLATE (ZIP), RAR, LZMA/LZMA2 (7-Zip), ARJ, LZH, and others
EncryptionOptional; embedded archive supports AES-256 (WinRAR, 7-Zip); the extractor stub itself is unencrypted
MIME typeapplication/x-msdownload; also application/octet-stream
Typical file sizeFrom a few hundred KB (stub overhead) up to multiple GB depending on payload
Max archive entriesBounded by the embedded format (ZIP: 65,535 without ZIP64; RAR and 7z: effectively unlimited)
Integrity checkingCRC32 per entry from the embedded archive; RAR/7z add recovery records; Authenticode code-signing optional on the PE wrapper
Password protectionSupported via embedded archive encryption; AES-256 in WinRAR and 7-Zip; password prompt appears at extraction time
Associated platformsWindows (primary); DOS (historic ZIP2EXE/ARJ); Classic Mac OS .sea self-extractors (historic)
StructureNative extractor stub at the start (the .exe entry point), followed by the appended compressed archive data and its trailing directory or end-of-archive signature
Creator ecosystemNo single developer; produced by PKWARE (ZIP2EXE), win.rar GmbH (WinRAR SFX modules), Igor Pavlov (7-Zip 7zSD.sfx), and WinZip/Corel
ReleasedEarly 1990s (DOS-era self-extracting ZIP/ARJ archives)
Latest versionN/A (no single spec; defined by the host archiver, e.g. WinRAR SFX module)
Specificationwww.win-rar.com

SFX conversions

Community Q&A

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

Frequently asked questions

How do I open an SFX file without running it?
Right-click it and choose 7-Zip > Open archive (or open it in WinRAR). Both read the embedded archive directly, so you can inspect and extract the files without executing the program.
Is an SFX file a virus?
Not inherently - it is just an archive that can unpack itself. But because it is an executable, malware is often disguised as one. Treat an SFX from an untrusted source like any unknown .exe: don't run it, inspect it in 7-Zip first, and scan it.
What's the difference between SFX and EXE?
On Windows a self-extracting archive IS an .exe - the .exe just happens to contain compressed files plus an extractor stub. The bare .sfx extension usually means a WinRAR SFX module (the stub), not the finished archive.
Why is my .sfx file not running?
A standalone .sfx file is typically a WinRAR SFX module/stub, not a runnable self-extractor. The actual self-extracting archive is the .exe WinRAR produces. Open the .sfx in WinRAR or 7-Zip to see what it contains.
How do I create a self-extracting archive?
In WinRAR, add files to an archive and tick 'Create SFX archive'; in 7-Zip, add to a .7z then choose 'Create SFX archive' (or use 7zSD.sfx). WinZip Self-Extractor does it too. The result is an .exe that unpacks itself.
Can I extract an SFX on a Mac or Linux?
Yes. The Unarchiver/Keka (macOS) and 7-Zip/p7zip (Linux) read the embedded archive without running the Windows code, so you can extract the contents on any OS.

References

1WinRAR - Self-extracting archives (SFX) documentationwww.win-rar.com
27-Zip - Self-extracting / SFX module documentationdocumentation.help

Keep exploring

across the database

Top extensions this week

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

Related extensions

.RARRAR Archive (Roshal ARchive)
.ZIPZIP Archive
.Z01Split ZIP Archive - First Part
.7Z7-Zip Archive
.001Split / multi-volume archive - first part (.001)
.ZIRenamed / Truncated ZIP Archive

Free file tools

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

Open the toolbox

Browse file extensions A-Z