ESP32 Pin Planner
Plan ESP32 GPIO assignments safely: tick your project's needs (I2C, SPI, ADC, PWM, touch) and see which pins fit — with boot-strap and input-only warnings.
Tick what your project needs — see which GPIOs are safe for each function and which to avoid.
| Pin | Capabilities | Caution | Fits selection |
|---|---|---|---|
| GPIO0 | out, pwm, touch | boot mode strap — must be HIGH at boot | out |
| GPIO1 | — | TX0 — serial, avoid | |
| GPIO2 | out, pwm, adc, touch | boot strap — leave free or pull-down safe | out |
| GPIO3 | — | RX0 — serial, avoid | |
| GPIO4 | out, in, pwm, adc, touch | out, in | |
| GPIO5 | out, in, pwm | boot strap (SDIO) — ok for outputs | out, in |
| GPIO6-11 | — | internal flash — never use | |
| GPIO12 | out, in, pwm, adc, touch | boot strap — must be LOW at boot | out, in |
| GPIO13 | out, in, pwm, adc, touch | out, in | |
| GPIO14 | out, in, pwm, adc, touch | out, in | |
| GPIO15 | out, in, pwm, adc, touch | boot strap — outputs PWM at boot | out, in |
| GPIO16 | out, in, pwm | out, in | |
| GPIO17 | out, in, pwm | out, in | |
| GPIO18 | out, in, pwm, spi | out, in | |
| GPIO19 | out, in, pwm, spi | out, in | |
| GPIO21 | out, in, pwm, i2c | default I2C SDA | out, in |
| GPIO22 | out, in, pwm, i2c | default I2C SCL | out, in |
| GPIO23 | out, in, pwm, spi | default SPI MOSI | out, in |
| GPIO25 | out, in, pwm, adc, dac | out, in | |
| GPIO26 | out, in, pwm, adc, dac | out, in | |
| GPIO27 | out, in, pwm, adc, touch | out, in | |
| GPIO32 | out, in, pwm, adc, touch | out, in | |
| GPIO33 | out, in, pwm, adc, touch | out, in | |
| GPIO34 | in, adc | input only, no pull-up | in |
| GPIO35 | in, adc | input only, no pull-up | in |
| GPIO36 (VP) | in, adc | input only | in |
| GPIO39 (VN) | in, adc | input only | in |
About ESP32 Pin Planner
ESP32 GPIOs look interchangeable but aren't: GPIO6-11 drive the flash chip, GPIO34-39 are input-only with no pull-ups, and GPIO0/2/12/15 are boot-mode straps that can prevent booting if wired wrong.
Tick the functions your project needs and the table shows, per pin, which fit — plus the per-pin cautions that bite beginners (ADC2 vs WiFi, boot straps, UART0).
Everything runs locally in your browser — nothing you type, paste or drop is uploaded to a server.
How to use ESP32 Pin Planner
- Tick each function your circuit needs (input, output, PWM, ADC, I2C, SPI, touch).
- Read the table — highlighted rows satisfy the whole selection.
- Check the Caution column before wiring boot-strap or input-only pins.
Frequently asked questions
Which pins are always safe?
GPIO4, 13, 16, 17, 18, 19, 21-23, 25-27, 32, 33 have no boot-strap role. Avoid GPIO6-11 (flash) and treat 0/2/12/15 carefully.
Why warn about ADC2?
ADC2 channels can't be read while WiFi is active — for analog reads in a connected project prefer ADC1 (GPIO32-39).
Is this for ESP32-S3/C3?
No — this table is the classic ESP32 (WROOM-32/DevKit). S3/C3 variants have different pinouts.