ESPHome logo ESPHome
Home / Guides / ESPHome Web Browser Flashing

ESPHome Web: Flash and Provision an ESP32 Straight From Your Browser

How the browser-based flasher works, which browsers and drivers it needs, and how to take a blank board to a Wi-Fi-connected ESPHome device in a few minutes.

ESPHome Editorial TeamUpdated 2026-11-2411 min read2,391 words
ESPHome Web connect dialog listing USB serial ports next to an ESP32-C3 board

ESPHome Web is the fastest way to put ESPHome on a brand-new board. It runs entirely in a desktop browser, needs no Python installation, and takes a blank ESP32 or ESP8266 from the box to a device that is already on your Wi-Fi and waiting to be adopted. This guide explains what the tool actually does, what your computer needs, and how to get through the first flash without the usual driver and boot-mode headaches.

What ESPHome Web is, and what it is not

ESPHome Web is a single web page, hosted at web.esphome.io, that talks to a microcontroller over USB using the browser's Web Serial interface. It can do three things: write a small starter firmware to a board, provision that board with Wi-Fi credentials, and install a firmware file you have already compiled elsewhere. It can also show the serial log of a connected device.

What it does not do is compile your configuration. There is no YAML editor in ESPHome Web and no build server behind it. When you choose Prepare for first use, the page writes a generic, pre-built image that contains just enough of ESPHome to join Wi-Fi, announce itself on the network and accept a proper firmware later. The real device configuration is still created and compiled in the ESPHome Device Builder, whether that runs as a Home Assistant app, in Docker or from the command line.

That split is deliberate. The first flash is the only step that requires a cable, and it is also where most beginners get stuck. By moving that one step into the browser, ESPHome removes the need to install drivers, Python and toolchains on the machine that happens to be next to the board. Everything after the first flash happens over the air.

When it makes sense to use the browser flasher

ESPHome Web is the right tool in several common situations:

  • Your Device Builder runs on a different machine. If Home Assistant lives on a Raspberry Pi in a cupboard or on a virtual machine, you cannot easily plug a board into it. The browser on your laptop becomes the USB bridge instead.
  • You are setting up a batch of boards. Prepare each one with the starter image and Wi-Fi details, then adopt them all from the dashboard and push the real configuration wirelessly.
  • You received a pre-compiled firmware file. Some projects publish ready-made .bin images. ESPHome Web can install those without any local tools.
  • You need to recover a board. A device whose last update broke Wi-Fi can be brought back by writing a known-good image over USB.

If your Device Builder already runs on the computer the board is plugged into, you can skip the browser and install directly from the dashboard. Both paths end in the same place.

What your computer needs

Web Serial is the critical requirement. It is implemented in Chromium-based desktop browsers: Google Chrome, Microsoft Edge, Opera and Brave. Firefox and Safari do not support it, and neither do browsers on phones or tablets. If the Connect button does nothing, or the page reports that your browser is not supported, the browser is the problem.

The page must also be served over a secure connection. Because web.esphome.io uses HTTPS, this is already handled. The same rule explains why installing from a Home Assistant dashboard opened over plain http:// on a local IP address does not offer the browser-based USB option: Web Serial is blocked on insecure origins.

Beyond the browser, you need:

  1. A USB cable that carries data. Many cables bundled with power banks and lamps only carry power. If the computer makes no connection sound and no new port appears, try a different cable before anything else.
  2. The right USB-to-serial driver. Development boards use a bridge chip to translate USB to the microcontroller's serial port. The most common are the Silicon Labs CP210x family and the WCH CH340/CH343 family. Windows 10 and 11 usually install these automatically through Windows Update, macOS includes drivers for most of them, and Linux has them in the kernel. Boards such as the ESP32-S3 and ESP32-C3 often use the chip's native USB instead, which needs no driver.
  3. Permission to use the port on Linux. Your user account must be in the dialout group (or uucp on some distributions). Add yourself with sudo usermod -a -G dialout $USER and log out and back in.

Identifying your board's USB chip

Look at the small chip near the USB connector. A square marked CP2102 or CP2104 is a Silicon Labs bridge. A chip marked CH340C, CH340G or CH343 is from WCH. If there is no separate chip and the USB lines run straight to the main module, the board uses native USB. On Windows, the Device Manager lists the port under Ports (COM & LPT) with a name that reveals the chip: "Silicon Labs CP210x USB to UART Bridge", "USB-SERIAL CH340" or "USB JTAG/serial debug unit" for native USB on newer ESP32 variants.

When the port appears with a yellow warning triangle, the driver is missing. Install it from the chip manufacturer's site, unplug the board, plug it back in and reload the ESPHome Web page.

Step by step: Prepare for first use

With the browser and cable sorted out, the process takes a few minutes.

  1. Plug the board into the computer and open web.esphome.io in Chrome or Edge.
  2. Click Connect. The browser opens its own dialog listing available serial ports. Choose the one that matches your board and click Connect in that dialog.
  3. ESPHome Web reads the chip type. If it detects the board correctly, it shows options to Prepare for first use, Install a file, and view Logs.
  4. Choose Prepare for first use. The page explains that this erases the device and installs ESPHome. Confirm, and the write begins.
  5. A progress bar shows erasing and writing. On an ESP32 this usually takes between one and two minutes.
  6. When the write completes, the page offers to configure Wi-Fi. Select your network from the list or type its name, enter the password and submit.
  7. The board reboots, joins your Wi-Fi and starts announcing itself.

At this point the device runs a minimal ESPHome build. It has a name derived from the chip, such as esp32-c3-1a2b3c, and it is visible to any ESPHome dashboard or Home Assistant instance on the same network.

If the browser reports "Failed to initialize" or the progress bar stalls at zero, the board is probably not in download mode. Hold the BOOT button, tap RESET (sometimes labelled EN), release BOOT and click Connect again.

How Wi-Fi provisioning works

The Wi-Fi step uses a protocol called Improv. When the starter firmware boots without credentials, it listens on the serial line for an Improv message. ESPHome Web sends your network name and password over the same USB connection, the board stores them and tries to connect, then reports success or failure back to the page.

Because the credentials travel over the cable rather than through a temporary access point, there is no need to join a setup network on your phone. If the connection fails, check that you entered the password correctly and that the network is 2.4 GHz. ESP32 and ESP8266 chips cannot use 5 GHz Wi-Fi, so a router that broadcasts a single combined name for both bands sometimes needs its 2.4 GHz band enabled or given a separate name for setup.

The starter firmware also enables Improv over Bluetooth on ESP32 boards, and it keeps a fallback access point available. If the board later loses its Wi-Fi network, you can reconnect it without another cable.

Adopting the device in the Device Builder

Once the board is online, open the ESPHome Device Builder. A card for the new device appears in the Discovered section with an Adopt button. Adopting does three things:

  • Creates a YAML configuration in your Device Builder for that device, based on the starter project.
  • Lets you give the device a proper name, such as office-climate.
  • Compiles a fresh firmware with a newly generated API encryption key and installs it over the air.

From here, the device is a normal managed ESPHome node. Click Edit to add sensors, switches or lights, save the file and choose Install → Wirelessly. Home Assistant will offer to add the device under Settings → Devices & services as soon as it sees it with its encryption key.

If you use Home Assistant, the Device Builder app and Home Assistant usually discover the device at the same moment. Adopt it in the Device Builder first, so the configuration exists before you add the integration. Otherwise Home Assistant may ask for an encryption key the starter firmware does not have yet.

Installing a custom firmware file

The Install option accepts a firmware file produced elsewhere. This is useful when you compile on one computer and flash on another, or when a project publishes a ready-made image.

In the Device Builder, open the device's menu and choose Install → Manual download. ESPHome compiles the configuration and offers a download. There are usually two formats:

  • Factory format contains the bootloader, partition table and application in one file. Use it for a first install on a blank or erased chip.
  • OTA format contains only the application image. Use it for updates to a board that already runs ESPHome.

In ESPHome Web, click Connect, choose Install, and select the factory file. The page writes it to the correct offsets automatically. If you are replacing existing firmware with a completely different project, the page may ask whether to erase the device first. Erasing removes stored Wi-Fi credentials and other saved settings, which is usually what you want when changing a board's purpose.

Reading logs from the browser

The Logs button opens a live serial console. This is the quickest way to see why a device will not join Wi-Fi or why it keeps rebooting. Look for lines such as:

[I][wifi:313]: WiFi Connecting to 'HomeNet'...
[W][wifi:719]: Error while connecting to WiFi: AUTH_EXPIRE
[I][app:029]: Running through setup()...

An authentication error means the password is wrong. Repeating setup() messages with a reset reason of brownout point to a power problem. A crash backtrace usually means the firmware itself is faulty, and installing a known-good image will recover the board.

Logs over USB work even when Wi-Fi does not, which makes the browser console the first place to look whenever a device refuses to appear on the network.

Troubleshooting the common failures

No ports in the browser dialog

The computer does not see a serial device at all. Swap the cable, try a different USB port directly on the computer rather than through a hub, and confirm the driver is installed. On Linux, check that your user is in the dialout group.

"Failed to connect to ESP32: Wrong boot mode detected"

The chip did not enter its serial bootloader. Most development boards switch automatically using the USB bridge's control lines, but some cheap boards need manual help. Hold BOOT, press and release RESET, then release BOOT and try again. On bare modules without buttons, connect GPIO0 to ground while powering the chip.

The write starts but fails partway

This is often a power or cable issue. Long, thin cables and unpowered hubs can drop voltage when the chip's radio starts. Use a short, good-quality cable and a port directly on the computer. If the failure repeats at the same point, try erasing the device first.

The device installs but never appears on the network

Open Logs and watch the boot sequence. If Wi-Fi authentication fails, provision again with the correct password. If the board joins Wi-Fi but the dashboard does not see it, the problem is discovery: some routers and mesh systems block the mDNS traffic ESPHome uses to announce itself. Find the device's IP address in your router and add it manually, or enable mDNS forwarding.

ESP8266 boards with 1 MB flash

Very small ESP8266 modules, such as the ESP-01 with 1 MB, can run ESPHome but have little room for OTA updates. Keep their configuration lean and avoid large components such as the web server.

Using ESPHome Web safely

Flashing over USB from a browser is safe for low-voltage development boards. The rules change when the board lives inside a smart plug, a light switch or anything else connected to mains electricity.

  • Never connect USB or a serial adapter to a device while it is plugged into the wall. The device's internal ground may be at mains potential, and your computer's USB port is not isolated.
  • Power the device only from the serial adapter's 3.3 V output during flashing, and check that the adapter is set to 3.3 V rather than 5 V.
  • Close the case completely before plugging the device back into mains.

On the software side, the starter image installed by ESPHome Web is generic. Adopt the device promptly so it receives its own API encryption key and an OTA password, rather than leaving it on the network running the unconfigured starter firmware.

How ESPHome Web fits into the wider workflow

A practical pattern for most homes looks like this:

  1. Prepare every new board with ESPHome Web from whichever computer is closest.
  2. Adopt each one in the Device Builder and give it a meaningful name.
  3. Edit the YAML to add the actual hardware, such as sensors, relays or LEDs.
  4. Install updates wirelessly from then on.
  5. Return to ESPHome Web only when a board needs recovery or a fresh start.

This keeps cables out of the daily routine and leaves the Device Builder as the single place where configurations live, are backed up and are updated. The browser flasher handles the one awkward step, and everything after it stays wireless.

Key takeaways

  • ESPHome Web flashes and provisions boards over USB from a Chromium desktop browser; it does not compile YAML.
  • Prepare for first use installs a starter firmware and sets up Wi-Fi via Improv over the same cable.
  • Most failures come from charge-only cables, missing CP210x or CH34x drivers, boards that need manual boot mode, or a 5 GHz-only network.
  • Adopt the device in the Device Builder straight away so it receives its own configuration, encryption key and OTA password.
  • Treat any mains-powered device with care: never connect it to your computer while it is plugged in.