Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExeBin

Convert any executable (.exe) file to Base64, Hex, or Raw byte format.

Features

  • 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

Installation

PowerShell (Recommended - No Dependencies)

# Clone the repository
git clone https://github.com/wulcato/ExeBin.git
cd ExeBin

# Run directly
.\ExeToBin.ps1 -InputFile "path\to\your.exe"

Python Version

# Requires Python 3.x
python exe2bin.py

Node.js Version (CLI)

# 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

Usage

PowerShell CLI

# 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"

Python GUI

  1. Click Browse to select an .exe file
  2. Choose output format (Base64 / Hex / Raw Bytes)
  3. 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.

Node.js CLI

# 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

Output Formats

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

Requirements

PowerShell Version

  • Windows PowerShell 5.0+ or PowerShell Core
  • No external dependencies

Python Version

  • Python 3.6+
  • tkinter (built-in)

Node.js Version

  • Node.js 12+
  • No external dependencies

License

MIT License - See LICENSE for details.

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.


Convert executables to portable byte formats

About

Exe to Base64/Hex converter - Python GUI + PowerShell + Node.js CLI

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages