Executable File vs Binary File
A binary file is any file that is not plain text, like a photo or a zip. An executable is one kind. It is a program you can start.
Executable File
A file that holds a program. You can start it and it runs.
An executable file is a program the computer can start and run. Inside is machine code, or code that a runtime knows how to run. On Windows these files often end in .exe. On macOS and Linux they usually have no ending, and a setting marks them as allowed to run. A compiler or a build tool makes them from source code.
Binary File
A file of raw bytes, not words. Pictures, apps and songs are all binary.
A binary file stores data as raw bytes that are not meant as text. Pictures, songs, videos, apps and ZIP files are all binary. Only a program that knows the format can make sense of one. Open it in a text editor and you see strange symbols. Binary files are often smaller and faster to read than the same data as text.
In one line
- Executable File
- A file that holds a program. You can start it and it runs.
- Binary File
- A file of raw bytes, not words. Pictures, apps and songs are all binary.