Skip to content

Guide

ESP-01 Pinout: The 8 Pins, Boot Modes and How to Program It

A complete ESP-01 pinout: what each of the 8 pins does, the GPIO0/GPIO2 boot rules, power requirements, and the wiring for uploading and running.

ESP-01 Pinout: The 8 Pins, Boot Modes and How to Program It

The ESP-01 is the smallest way to put Wi-Fi on a project: an ESP8266EX, its SPI flash and a PCB antenna on a module with an 8-pin header. That header is all you get: two GPIOs (GPIO0 and GPIO2, both boot pins), the serial pins, enable, reset and power. There's no USB and no regulator, so it needs a little support circuit.

Quick answer: pins are GND, IO2, IO0, RX on one row and TX, EN, RST, 3V3 on the other. Supply 3.3 V with at least 250 mA, never 5 V. To run: EN and RST pulled up, IO0 pulled up. To upload: hold IO0 LOW and reset. Program it through a USB-serial adapter with 3.3 V IO.

ESP-01 pinout diagram
TXENRST3V3GNDIO2IO0RX

Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.

The 2 × 4 header of the SolderHub Simulator ESP-01. Orange pins are boot pins, amber pins are the serial port, red is 3.3 V power, grey is ground.

What's Actually on the Board

A PCB antenna at one end, the ESP8266EX and its SPI flash in the middle, and the 2 × 4 header at the other end. That's it: everything else (power regulation, USB, buttons) is up to you.

What’s on an ESP-01: PCB antenna, ESP8266EX, SPI flash and the 2 × 4 header, labelled on the SolderHub Simulator ESP-01

The 8 Pins

PinGPIOWhat it does
GND—Ground
IO2GPIO2GPIO; must be HIGH at boot (pull-up on at boot)
IO0GPIO0GPIO; HIGH = run, LOW at reset = upload mode
RXGPIO3Serial in (to the adapter's TX)
TXGPIO1Serial out (to the adapter's RX)
EN—Chip enable (CH_PD): pull up to run
RST—Reset: keep pulled up, LOW to reset
3V3—3.3 V supply, ≥ 250 mA
Interactive ESP-01 pinout: tap any pin

8 of 8 pins match

TXENRST3V3GNDIO2IO0RX

Hover or tap any pin on the board

ROW 2 header · pin 1

TX

TX

Use with care

Serial TX: connect to the adapter's RX.

Serial

Used for uploads and the Serial Monitor; anything else wired here can block uploads.

Can be used as

  • UART

Signals on this pad

  • GPIO1
  • TXD0
Tap or hover any pin for its functions and warnings.

Boot Modes: Why GPIO0 and GPIO2 Matter

At reset the ESP8266 reads three pins. GPIO15 must be LOW and isn't on the ESP-01's header, so the two you control are:

GPIO0GPIO2Result
HIGHHIGHRuns your sketch from flash
LOWHIGHUART bootloader: ready for an upload

So both GPIOs must be HIGH at power-up for normal running. A button or sensor that pulls either one LOW at boot stops your sketch from starting.

Boot pins: IO0 (GPIO0) and IO2 (GPIO2)
TXENRST3V3GNDIO2IO0RX

Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.

ESP-01 not running or not uploading?
You power the module up
Q1 Is the 3.3 V supply weak (an adapter's 3V3 pin, or under 250 mA)?
yes → Use a separate 3.3 V regulator that can supply at least 250 mA.
no
Q2 Are EN and RST floating?
yes → Pull both up to 3.3 V with resistors; the module won't run otherwise.
no
Q3 Is IO0 LOW at reset?
yes → That's upload mode. Release IO0 (pulled up) and reset to run your sketch.
no
Q4 Does the upload fail to connect?
yes → Hold IO0 LOW, reset, then upload. Cross TX→RX and RX→TX, and use a 3.3 V adapter.
no
Check that nothing pulls IO2 LOW at boot.
From the ESP8266 Arduino core’s boot table and minimal wiring for generic modules.

Wiring for Uploading

ESP-01Connect to
3V33.3 V regulator output (≥ 250 mA)
GNDRegulator GND and adapter GND
TXAdapter RX
RXAdapter TX
EN3.3 V through a pull-up resistor
RST3.3 V through a pull-up resistor (a button to GND resets)
IO0Pull-up resistor; a button to GND for upload mode

Use resistors, not wires: the core docs point out that a direct connection to VCC or GND isn't a substitute for a pull-up or pull-down. In the Arduino IDE pick Tools → Board → Generic ESP8266 Module.

Serial: TX (GPIO1) and RX (GPIO3)
TXENRST3V3GNDIO2IO0RX

Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.

Power and control: 3V3, GND, EN and RST
TXENRST3V3GNDIO2IO0RX

Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.

Try your pin plan on a virtual ESP-01. The SolderHub Simulator has the same ESP-01 you see in these figures, so you can check the wiring before you touch real hardware.

FAQ

Can I power the ESP-01 from 5 V? No, 3.3 V only.

Why does the ESP-01 keep resetting? Usually a weak supply: it needs at least 250 mA at 3.3 V.

How many GPIOs does the ESP-01 have? Two (GPIO0, GPIO2), plus TX/RX if you don't need serial.

How do I put the ESP-01 in programming mode? Hold IO0 LOW and reset.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.