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.

How to use it

  1. Open the S19 (S-record) file as File A.
  2. Check the range under “Edit file A”: the binary runs from From to To, and gaps are filled with the fill byte.
  3. Press “Save as BIN”. The full tool below can also merge, fill, crop, relocate, add a CRC or compare with a second file.

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 S19 files can it read?

Motorola S-records with 16, 24 or 32-bit addresses (S1, S2 and S3 records), in files ending .s19, .s28, .s37, .srec, .mot or .sx.

What does the BIN file look like?

One flat file from the From address to the To address (exclusive) under “Edit file A”. Gaps between segments are filled with the fill byte, FF by default, as in erased flash. The name ends with the start address (app_08000000.bin), because a binary stores none.

Why is the BIN file so large?

A binary has no addresses, so it covers everything from its first to its last byte. Data far apart, such as a bootloader at 08000000 and calibration at 08080000, leaves a large filled gap between them. Set From and To to the part you need, or crop the image first.

Can I check that the converted file holds the same data?

Yes: open the result as File B. The comparison lists every address range where the two differ.

Can I add a CRC or a checksum while converting?

Yes. Under “Edit file A”, insert a CRC-32, a CRC-16 or a sum over a range, at an address and in the byte order you choose, then save.

Related tools

  • Firmware file tool (HEX / S19 / BIN): View, convert, merge, fill gaps, crop, relocate and compare firmware images; insert CRC-32/CRC-16/sums.
  • 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.
  • 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 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.
  • UF2 to BIN converter: Convert a UF2 firmware file to a flat binary: pick the address range and the byte that fills the gaps.
  • Flash STM32, ESP32 and RP2040 from the browser: Program HEX/S19/BIN/UF2 into an STM32 (UART bootloader, USB DFU, ST-LINK or CMSIS-DAP), an ESP32 or ESP8266 (ROM loader) or an RP2040/RP2350 (PICOBOOT or UF2); verify and read back.
  • Flash an ECU over UDS: Download a HEX, S19 or BIN file through the bootloader: session, security access, erase, 34/36/37, CRC check and reset, with your own saved flash sequence.

Also useful for: s19 to bin, convert s19 to bin, s192bin, srec, motorola s-record, mot, s28, s37, binary, raw binary.