Convert any executable (.exe) file to Base64, Hex, or Raw byte format.
- Multiple Output Formats: Convert to Base64, Hexadecimal, or Raw bytes
- Cross-Platform Scripts: Python GUI, PowerShell CLI, and Node.js CLI versions
- Lightweight: No dependencies required for PowerShell and Node.js versions
- Clipboard Support: One-click copy to clipboard
- File Export: Save output to any text file
# Clone the repository
git clone https://github.com/wulcato/ExeBin.git
cd ExeBin
# Run directly
.\ExeToBin.ps1 -InputFile "path\to\your.exe"# Requires Python 3.x
python exe2bin.py# Requires Node.js
node ExeToBin.js <inputfile.exe>
node ExeToBin.js <inputfile.exe> -Hex
node ExeToBin.js <inputfile.exe> -Both
node ExeToBin.js <inputfile.exe> -Base64 -OutputFile output.txt# Convert to Base64
.\ExeToBin.ps1 -InputFile "notepad.exe" -OutputFormat Base64
# Convert to Hex
.\ExeToBin.ps1 -InputFile "notepad.exe" -OutputFormat Hex
# Convert to both formats
.\ExeToBin.ps1 -InputFile "notepad.exe" -OutputFormat Both
# Save output to file
.\ExeToBin.ps1 -InputFile "notepad.exe" -OutputFormat Base64 -OutputFile "output.txt"- Click Browse to select an .exe file
- Choose output format (Base64 / Hex / Raw Bytes)
- Copy to clipboard or save as file
Note: Large files may take a moment to convert. A progress bar will appear - please wait until the process completes.
# Convert to Base64 (default)
node ExeToBin.js notepad.exe
# Convert to Hex
node ExeToBin.js notepad.exe -Hex
# Convert to both formats
node ExeToBin.js notepad.exe -Both
# Save output to file
node ExeToBin.js notepad.exe -Base64 -OutputFile output.txt| Format | Description | Use Case |
|---|---|---|
| Base64 | ASCII-safe encoding | Embedding in scripts, web, documents |
| Hex | Hexadecimal bytes | Debugging, memory analysis |
| Raw | Spaced hex bytes | Compact representation |
- Windows PowerShell 5.0+ or PowerShell Core
- No external dependencies
- Python 3.6+
- tkinter (built-in)
- Node.js 12+
- No external dependencies
MIT License - See LICENSE for details.
Contributions are welcome! Feel free to submit issues and pull requests.
Convert executables to portable byte formats