ESP32 and ESP8266 flasher in the browser

esptool’s write_flash over Web Serial: auto-reset into the ROM loader, bootloader, partition table and app at their offsets, compressed writes, MD5 verify, faster baud rates.

How to use it

  1. Add the .bin files and their offsets: bootloader, partition table and app (the names usually give it away), or a single merged image at 0x0.
  2. Connect: the page resets the board into the ROM loader through DTR and RTS (or the native USB), syncs and names the chip.
  3. Program: each file is erased, written compressed and checked by MD5; then the board resets into the new firmware.

Questions

Which chips work?

ESP8266, ESP32, ESP32-S2, S3, C2, C3, C5, C6, H2 and P4, through each chip’s ROM loader.

It will not connect. What now?

Hold BOOT (GPIO0), tap RESET (EN) and let go of BOOT, then connect with the reset method “none”. Check that no serial monitor holds the port, and try 115,200 baud.

Where do the offsets come from?

From the build: ESP-IDF prints them after idf.py build (flash_args), Arduino and PlatformIO use the bootloader at 0x1000 or 0x0, partitions at 0x8000 and the app at 0x10000.

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.

Related tools

Also useful for: esptool, esp32 flasher, esp web flasher, esptool-js, flash download tool, esp32-s3, esp32-c3, esp32-c6, write_flash, partition table.