Firmware file tool (HEX / S19 / BIN)

View, convert, merge, fill gaps, crop, relocate and compare firmware images; insert CRC-32/CRC-16/sums.

How to use it

  1. Open an Intel HEX, S-record or binary file (give a load address for .bin).
  2. See the memory map, then merge, fill gaps, crop, relocate or insert a CRC.
  3. Save as HEX, S19 or BIN, or open a second file to compare the two.

Questions

Is my firmware uploaded?

No. The file is read by your browser in this tab and never sent anywhere; there is no server that could receive it.

Which formats does it read and write?

Intel HEX (including extended linear and segment addresses), Motorola S-records (S19, S28, S37) and raw binary.

Can it put a checksum into the image?

Yes: a CRC (CRC-32, CRC-16 and others) or an 8, 16 or 32-bit sum over a range you choose, written at an address you choose, in either byte order.

Can I flash the result?

Yes, from the related tools: over UDS to an ECU, or to an STM32, ESP32 or RP2040 with the microcontroller flasher.

Straight to a job

  • Intel HEX to S19 (S-record) converter: Convert a Intel HEX firmware file to S19 (S-record) with the same addresses and data, and check the result before you flash it.
  • Intel HEX to BIN converter: Convert a Intel HEX firmware file to a flat binary: pick the address range and the byte that fills the gaps.
  • Intel HEX to UF2 converter: Convert a Intel HEX firmware file to UF2 for the chip family you pick, ready to copy onto a Raspberry Pi Pico or another board that shows up as a USB drive.
  • S19 (S-record) to Intel HEX converter: Convert a S19 (S-record) firmware file to Intel HEX with the same addresses and data, and check the result before you flash it.
  • S19 (S-record) to BIN converter: Convert a S19 (S-record) firmware file to a flat binary: pick the address range and the byte that fills the gaps.
  • S19 (S-record) to UF2 converter: Convert a S19 (S-record) firmware file to UF2 for the chip family you pick, ready to copy onto a Raspberry Pi Pico or another board that shows up as a USB drive.
  • BIN to Intel HEX converter: Convert a binary firmware image to Intel HEX at the load address you give, ready to flash or merge.
  • BIN to S19 (S-record) converter: Convert a binary firmware image to S19 (S-record) at the load address you give, ready to flash or merge.
  • BIN to UF2 converter: Convert a BIN firmware file to UF2 for the chip family you pick, ready to copy onto a Raspberry Pi Pico or another board that shows up as a USB drive.
  • UF2 to Intel HEX converter: Convert a UF2 firmware file to Intel HEX with the same addresses and data, and check the result before you flash it.
  • UF2 to S19 (S-record) converter: Convert a UF2 firmware file to S19 (S-record) with the same addresses and data, and check the result before you flash it.
  • UF2 to BIN converter: Convert a UF2 firmware file to a flat binary: pick the address range and the byte that fills the gaps.

Related tools

Lessons that explain it

Also useful for: intel hex, ihex, srec, s28, s37, mot, hexview, srec_cat, flash image, merge.