Keil Logo

Intel HEX to BINARY File Converter Utility

This utility program creates a BINARY file from an Intel HEX file. You can use BINARY files with most EPROM programmers and you can easily use them for CRC or checksum calculations. Options for this utility program are listed below:

Syntax: HEX2BIN [/option] hexfile [binfile]

hexfile is the Intel HEX input file
binfile is the binary file to create

option  may be any of the following

  /Ln     Binary file length
  /Pn     Pad data for binary file
  /On     Address offset (to add to HEX records)
  /M      Merge data into existing BIN file
  /Q      Quiet mode (no statistics are displayed)
  /X      Don't process ext. segment/linear address records

  /?      This help text

Note: This utility program is a DOS application! It requires 8.3 naming convention for file names and paths and it does not run on 64Bit Windows versions. However, you can execute it in the XP mode (Virtual PC) of Windows 7 if necessary.

The utility srec_cat.exe is an excellent and more versatile replacement for HEX2BIN and BIN2HEX. This tool is part of the SRecord project hosted on You can download it from

Please see the following knowledgebase articles how HEX and BINARY files can be converted, merged and split using the srec_cat utility together with Keil microcontroller development tools.

Tuesday, August 10, 1999
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.