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.

How to use it

  1. Open the UF2 file as File A.
  2. Check the memory map: the segments, the address range and any warnings about the file.
  3. Press “Save as S19”. 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 UF2 files can it read?

UF2 files as made by the Pico SDK, picotool, MicroPython, CircuitPython and uf2conv: each block’s address and data are read, and the chip family is shown. Blocks marked as not for main flash are left out.

What does the S19 file look like?

S-records with 32 data bytes per line, an S0 header, a record count and an end record. S1, S2 or S3 records are chosen by the highest address, so the file ends .s19 even when it holds S28 or S37 records.

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 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.
  • 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.
  • 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 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: convert uf2 to s19, uf22s19, raspberry pi pico, rp2040, rp2350, bootsel, drag and drop firmware, circuitpython, micropython, uf2conv.