Need to create binary files with data for Your program, game etc.? Tired of using hex-editor and editing the file manually with the risk of structure-mismatches? Too lazy to reedit complete file after changing structure members order or size?

"data2bin" is a utility that takes:

1. Your structures description (you can use integers of different sizes and endiannesses, null-terminated text strings, fixed-size binary strings, structures, arrays...)

2. Your data in a XML file written down according to defined structure.

... and produces final binary file. It is able to pad Your strings with defined padding, check Your integers' sizes, it can fill default values where You didn't supply data, it can also, for example, put a "blank" array member at the end of an array etc.

Whenever You change your structure in Your code, just update the data-description file and "rebuild" Your binary files without touching XML data files!

Project Activity

See All Activity >

Follow data2bin

data2bin Web Site

nel_h2
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of data2bin!

Additional Project Details

Intended Audience

Developers

User Interface

Command-line

Programming Language

PHP

Related Categories

PHP XML Software, PHP Build Tools, PHP Hex Editors

Registered

2013-07-29