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.

How to use it

  1. Type the load address into “Base for .bin” (for example 08000000), then open the binary as File A.
  2. Check the memory map: the segments, the address range and any warnings about the file.
  3. Choose the chip family, then press “Save as UF2” and copy the file onto the board’s USB drive (hold BOOTSEL while plugging in a Pico).

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

Any raw binary (.bin, .img). It has no addresses of its own, so it is placed at the load address you give in “Base for .bin”.

What does the UF2 file look like?

512-byte UF2 blocks of 256 data bytes each, at 256-byte aligned addresses (partial blocks are padded with FF), every block tagged with the chip family you choose: RP2040, RP2350, an ESP32, STM32 or nRF52 family.

Which load address should I give?

The address the image is flashed to, from the linker script or the chip’s memory map: for example 08000000 for the internal flash of an STM32.

Which family should I choose?

The chip on the board: RP2040 for a Raspberry Pi Pico, “RP2350 Arm secure” for a Pico 2 running Arm code. The boot ROM ignores blocks of another family, so a wrong choice copies without error and then nothing runs.

Where must the image start for a Pico?

In flash, at 10000000 (the XIP address). A BIN for a Pico is therefore opened with 10000000 in “Base for .bin”.

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 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 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.
  • 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 bin to uf2, bin2uf2, binary, raw binary, .bin file, raspberry pi pico, rp2040, rp2350, bootsel, drag and drop firmware.