© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
𝕤𝕥𝕖𝕧𝕖𝟘𝟚𝟘𝟠𝟙𝟝𝟘𝟜

Is it possible for `.net` to create exe files smaller than 1kb?

In general, I've been trying to do something related to the smallest exe files lately
In my searches, I've seen that the smallest .net-based exe file appears to be 1kb:
https://blog.washi.dev/posts/tinysharp/
At the same time, I've also seen some even smaller exe files for native X64 that are just over two hundred bytes:
https://github.com/ayaka14732/TinyPE-on-Win10

I'm wondering if it's possible for .net based exe files to be smaller than 1kb?In my current experiments I've tried removing the
NUL
NUL
byte at the end of the generated exe file, but the program will become unrunnable.
Washi
How small is the smallest .NET Hello World binary?
Here is a dumb question that you probably never asked yourself: What is the minimal amount of bytes we need to store in a .NET executable to have the CLR print the string"Hello, World!" to the standard output?
GitHub
GitHub - ayaka14732/TinyPE-on-Win10: Smallest (268 bytes) 64-bit Po...
Smallest (268 bytes) 64-bit Portable Executable (PE) file that displays a message box on Windows 10 - ayaka14732/TinyPE-on-Win10
GitHub - ayaka14732/TinyPE-on-Win10: Smallest (268 bytes) 64-bit Po...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

is it possible to enable cors in net framework?
C#CC# / help
4y ago
How to make it smaller?
C#CC# / help
3d ago
❔ Is it possible to change a project sdk from Microsoft.NET.Sdk to Microft.net.sdk.net?
C#CC# / help
4y ago
❔ Is it possible to create an desktop application with Blazor?
C#CC# / help
3y ago