Skip to content

Convert EXE to 7Z

Store an EXE unchanged in 7Z or repack an EXE-based self-extracting archive.

Convert EXE files online

We don’t have a dedicated online converter for EXE to 7Z yet, but you can convert EXE files online to these and more formats:

Want to convert EXE to 7Z?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert exe to 7z file

A recipient may require a 7Z file for transfer, storage, or software distribution, while the source is an EXE installer or executable. The conversion either stores that EXE unchanged inside a 7Z archive or extracts an EXE-based self-extracting archive before repacking its contents.

What the EXE format is

EXE is a Windows executable-file extension, usually used for a Portable Executable (PE) program. Applications, command-line tools, installers, and self-extracting archives can all use it. Development environments and installer builders such as Visual Studio, Delphi, MinGW, Inno Setup, and NSIS commonly produce EXE files.

The extension does not identify the file's internal role. An ordinary EXE contains executable program code; an SFX (self-extracting) EXE combines an executable launcher with embedded archive data. Running an unknown EXE can execute arbitrary code, so inspect it without launching it and scan untrusted files with security software.

What the 7Z format is

7Z is an archive format designed to package one or more files. 7-Zip commonly uses LZMA or LZMA2 compression and supports solid archives, checksums, large files, and optional AES-256 encryption. With header encryption enabled, file names are encrypted along with the file data.

A 7Z archive is not normally a runnable replacement for the original EXE. It stores the EXE as an archive member; extracting it restores the executable, which can then be run separately. Compression may reduce the package size, but already-compressed installers and executable resources may shrink very little.

Archive an EXE with 7-Zip

  1. Install 7-Zip from the official 7-zip.org website.
  2. In File Explorer, right-click the EXE and choose 7-Zip → Add to archive....
  3. Set Archive format to 7z, choose the compression level, and enter an output name such as program.7z.
  4. Choose OK. The resulting archive contains the original EXE byte-for-byte.

The command-line equivalent is:

7z a -t7z program.7z program.exe

To archive a directory and its contents, use:

7z a -t7z package.7z folder\

To protect the archive with a password and hide its file names, use -p and -mhe=on:

7z a -t7z -p -mhe=on package.7z program.exe

Without -mhe=on, the password protects file data but normally leaves the archive's file names visible. A lost 7Z password cannot be recovered by 7-Zip.

Repack an EXE self-extracting archive

Use this procedure only when the EXE is an SFX archive and the goal is to package its embedded files rather than preserve the original EXE as one archive member. First inspect or extract it without running it:

7z l installer.exe

7z x installer.exe -oextracted

Then create a 7Z archive from the extracted contents:

7z a -t7z package.7z extracted\*

The graphical equivalent is 7-Zip → Open archive, followed by Extract To... and Add to archive.... Some installers use a proprietary container, encryption, online retrieval, or anti-extraction protection, so 7-Zip may not be able to list or extract them. Archive the original EXE instead when extraction fails or when the installer must retain its original behavior.

Use an online converter

Online services such as CloudConvert and Convertio sometimes provide archive conversion, but their accepted input formats change and many reject EXE files as executable content. Check the service's current format list before uploading; an ordinary EXE cannot be meaningfully converted into 7Z beyond placing it inside an archive.

Online conversion uploads the executable and may expose proprietary code, embedded credentials, personal data, or malware samples. Use a local 7-Zip installation for confidential, large, or untrusted files, and use an online service only when its EXE input is explicitly supported and its handling policy is acceptable.

Compatibility and quality limits

Directly archiving the EXE is lossless: extracting the 7Z reproduces the original file, including its digital signature, assuming the archive is intact. Repacking extracted SFX contents is a different operation: it removes the original launcher and signature, changes the directory structure or metadata, and may omit files created during installation. The resulting 7Z is not a drop-in replacement for the installer.

Windows does not provide universal built-in 7Z support. Recipients need 7-Zip or another utility that supports the format, such as PeaZip or a compatible command-line extractor. Test the finished archive with 7-Zip → Test archive or:

7z t program.7z

EXE vs 7Z: format comparison

How the EXE and 7Z formats compare on the properties that matter most for this conversion.

Comparison of the EXE and 7Z file formats
Property .EXE Portable Executable .7Z 7z archive
Open standard No Partly open
Compression Uncompressed Lossless
Typical file size Large Small
Opens in a web browser No No
Further editing Not directly editable Not directly editable
Metadata support Extensive Basic
Plain-text readable No No
Best used for Embedding in applications Long-term archiving
Introduced 1993 1999
Developer Microsoft Igor Pavlov / 7-Zip
MIME type — application/x-7z-compressed

Information about file extensions and file types is provided by File-Extensions.org

Frequently asked questions

Can I convert an EXE file to 7Z without changing it?

Yes, an EXE can be stored unchanged inside a 7Z archive. The EXE remains executable after extraction, but the 7Z file itself is not a replacement executable.

Will converting an EXE to 7Z remove its self-extracting feature?

Yes, repacking an EXE-based self-extracting archive as 7Z removes the self-extracting wrapper. The embedded files may remain intact, but users will need an archive program to open the 7Z file.

Why does my EXE fail when I try to convert it to 7Z?

An arbitrary EXE may be a program rather than a self-extracting archive, so its internal data cannot be opened as archive contents. In that case, store the EXE as a file inside a new 7Z archive instead of trying to extract or repack it.

Will an EXE become smaller when it is put in a 7Z archive?

It may become smaller, but the result depends on the EXE's existing compression and contents. If the EXE is already compressed, 7Z may provide little reduction, while the EXE itself remains unchanged inside the archive.

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.