Download an EXE upload test file

Choose a size for MZ and PE headers with a DOS message stub. The PE header declares zero sections and a zero entry point; this is an upload fixture, not a runnable Windows PE program or a safety benchmark.

10,485,760 bytes
10 MiB · EXE · 512 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

Advanced: test an upload limit

Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.

What to test with a EXE fixture

Check the saved byte count, then inspect the MZ signature and PE header. Compare extension-based rejection with your endpoint’s content inspection.

Raw binary upload fixture · Archive upload fixture

Choose a size here

Inside a generated EXE file

The e_lfanew field at offset 60 points to a PE signature at byte 128, and the COFF header declares zero sections. Between them sits the familiar message, This program cannot be run in DOS mode. The rest of a 1 MiB sample is zeros. The file utility still reports a portable executable, which makes this useful for checking whether a rule blocks by signature or only by the .exe extension.

File structure and testing limits

A Windows PE header fixture with a DOS message stub, zero PE sections and a zero entry point. Use it for extension and MIME tests. It is not a runnable Windows PE program or a malware-detection benchmark.

Format reference: Microsoft PE format.

Questions

How small can an EXE file be?

About 512 bytes.

Can this EXE file run as a Windows program?

No. The generator writes MZ and PE headers with zero executable sections. Check extension and MIME handling with it; use a separate runnable program when testing execution.

Guides for specific upload limits

Noticed an issue with this test file? Report an issue →