To create a self-extracting EXE on Windows, use an archive program that can save an archive as an executable: select your files, choose Add to archive, pick the self-extracting EXE option, and create it. The result is a single .exe file that unpacks its contents when double-clicked, so the recipient does not need any zip software. Windows also has an older built-in tool, IExpress, that can do a basic version of the same job.
Before you make one, it is worth knowing where self-extracting archives work well and where email filters and security warnings get in the way. Both are covered below.
What a self-extracting archive is
A self-extracting archive (often called an SFX) is a compressed archive with a small extraction program attached to the front. To the recipient it looks like any other program. When they run it, it asks where to put the files, or uses a default folder, and unpacks everything. No zip program, no "how do I open this?", no format worries.
It is a good fit when:
- You are sending files to people who are not comfortable with archives.
- You distribute a bundle of files on a USB stick or shared drive to many Windows PCs.
- You want a 7Z level of compression without asking recipients to install a 7Z-capable program.
It is a poor fit for Mac or Linux users (an EXE is a Windows program), and for email, as explained below.
Method 1: Create a self-extracting EXE with an archive program
Universal Zip can turn any archive into a single EXE that unpacks itself on any Windows PC, with an optional custom message shown to the person who opens it. The process:
- Select the files or folders in File Explorer.
- Right-click and choose Add to archive.
- Choose the self-extracting EXE option.
- Pick a compression level. Higher levels make a smaller EXE, which matters if you are uploading it or putting it on a small drive.
- Add a custom message if you want one, for example "These are the March project files. Choose a folder and click Extract."
- Create the archive, then test it by running it yourself and extracting to a temporary folder.
Give the file a clear name such as March-project-files.exe, not something generic like setup.exe. People are rightly suspicious of unexpected EXE files, and a descriptive name helps.
Method 2: Use IExpress, the tool built into Windows
Every version of Windows from XP onwards includes IExpress, an old wizard for building self-extracting packages. It is basic, but it needs no installation.
- Press Windows+R, type
iexpressand press Enter. Approve the administrator prompt. - Choose Create new Self Extraction Directive file and click Next.
- Select Extract files only.
- Enter a package title, choose whether to show a confirmation prompt and a license agreement (both can be skipped).
- Click Add and choose the files. IExpress adds individual files, not folders, so zip folder structures first or flatten them.
- Choose how the window appears and whether to show a finished message.
- Enter a path and name for the EXE. Tick Store files using Long File Name inside Package.
- Choose No restart, decide whether to save the directive file for reuse, then click Next to build.
IExpress works, but it does not keep folder structures, has dated compression and has a dated interface. It suits a quick one-off bundle of a few files.
Comparing the options
| Archive program SFX | IExpress | Plain ZIP | |
|---|---|---|---|
| Recipient needs software | No (Windows only) | No (Windows only) | No, on almost any device |
| Keeps folder structure | Yes | No | Yes |
| Compression | Good to excellent | Basic | Good |
| Works on Mac or phone | No | No | Yes |
| Passes email filters | Usually blocked | Usually blocked | Usually fine |
The email problem
Most email services block executable attachments outright, because EXE files are a classic way to spread malware. Gmail blocks EXE files even when they are inside a ZIP, and Outlook blocks them by default too. Renaming the extension to get around the filter is a bad idea: it trains people to run renamed files, and many filters inspect the file contents anyway.
Instead:
- Share the EXE through a cloud storage link, a file transfer service or your company's shared drive.
- Put it on a USB stick for local delivery.
- If email is the only option, send a standard ZIP instead. Every Windows PC can open it without extra software, which makes the SFX unnecessary. Our guide to compressing files to send by email covers the details.
Security warnings the recipient may see
When someone downloads and runs an EXE, Windows SmartScreen may show "Windows protected your PC" because the file is new and not digitally signed. They can click More info and then Run anyway, but only if they trust you. Some antivirus products are also wary of self-extracting archives. Tell the recipient in advance that the file is coming, what it is called and roughly how big it is, so they can recognize it as genuine.
Never run a self-extracting archive you were not expecting, even from someone you know. Accounts get compromised, and an EXE pretending to be a document archive is a common trick.
Self-extracting archives and passwords
If the contents are confidential, a self-extracting EXE is not automatically protected. Think about whether the convenience of "no software needed" is worth more than encryption. For sensitive files, an AES-256 encrypted ZIP or 7Z, with the password sent separately, is usually the better choice, even though the recipient then needs an archive program. See how to password protect a ZIP file.
Large self-extracting archives
Very large EXE files can be awkward: some upload services reject them, and FAT32 drives cannot hold any single file of 4 GB or more. If the bundle is huge, consider a split archive instead, so each piece fits the destination. Our guide to splitting a large file into smaller parts explains how the recipient rejoins them. Universal Zip handles splitting and self-extracting archives from the same Add to archive window, so you can pick whichever suits each delivery.
Frequently asked questions
What is a self-extracting archive?
It is an archive packed inside a small Windows program. Double-clicking the EXE unpacks the files, so the recipient does not need any archive software.
Can I email a self-extracting exe?
Often not. Many email services, including Gmail, block EXE attachments, even inside a ZIP. Share it through a cloud link or USB drive instead.
Does a self-extracting archive work on Mac?
No. A self-extracting EXE is a Windows program. For Mac or Linux users, send a standard ZIP file instead.
