A very fast and simple utility for converting a binary file into a C++ source file.
bin2cpp makes it possible to embed resources into the program’s executable file and load them into memory in a platform-independent way.
The program generates a C++ source file from any input file, embedding its contents in a "constexpr uint8_t" array.

Features

  • The program is available in both console and GUI versions, with the latter being the recommended way to use bin2cpp
  • Validates names and paths for correctness
  • Supports Unicode characters in file paths and names, including valid Unicode identifiers in C++ (names composed of characters with Unicode property XID_Start for the first character and XID_Continue for subsequent characters, in accordance with the C++ standard)
  • Shows conversion progress
  • Shows elapsed time after conversion is complete
  • Shows elapsed time after conversion is complete

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow bin2cpp (GUI + console)

bin2cpp (GUI + console) Web Site

Other Useful Business Software
The CI/CD Platform built for Mobile DevOps Icon
The CI/CD Platform built for Mobile DevOps

For mobile app developers interested in a powerful CI/CD platform for mobile app development and mobile DevOps

Save time, money, and developer frustration with fast, flexible, and scalable mobile CI/CD that just works. Whether you swear by native or would rather go cross-platform, we have you covered. From Swift to Objective-C, Java to Kotlin, as well as Xamarin, Cordova, Ionic, React Native, and Flutter: Whatever you choose, we will automatically configure your initial workflows and have you building in minutes.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of bin2cpp (GUI + console)!

Additional Project Details

Operating Systems

Windows

Languages

English

Intended Audience

Developers

User Interface

wxWidgets

Programming Language

C++

Related Categories

C++ Software Development Software, C++ Command Line Tools

Registered

2025-08-15