Every XIAO ESP32 board breaks out the same 11 GPIO pins, D0 through D10, on the same 14-pin header with 5V, GND, and 3V3. What changes is the GPIO number behind each D pin, how many pins can read analog voltages, and which pins the chip watches at boot.
This guide gives the pin table for the C3, the C6, and the C5 from the Seeed wiki pin map for each board, and points to our full S3 pinout guide for the S3. It also covers shared pins, free pins, and strapping pins. Verify every table against the Seeed wiki page for your board variant before you solder. Pin tables conflict across sources.
Which pins do all four XIAO ESP32 boards share?
The header layout is the same on all four boards. The bus positions never move: I2C is always D4 and D5, SPI is always D8, D9, and D10, and UART is always D6 and D7. What moves is the GPIO number and the analog count.
| Function | C3 | C6 | S3 | C5 |
|---|---|---|---|---|
| I2C SDA / SCL | D4 / D5 | D4 / D5 | D4 / D5 | D4 / D5 |
| SPI SCK / MISO / MOSI | D8 / D9 / D10 | D8 / D9 / D10 | D8 / D9 / D10 | D8 / D9 / D10 |
| UART TX / RX | D6 / D7 | D6 / D7 | D6 / D7 | D6 / D7 |
| Analog pins on the header | 4 (D0 to D3) | 3 (D0 to D2) | 9 (D0 to D5, D8 to D10) | 1 (D0) |
Sources: Seeed wiki pin maps; our S3 pinout post for the S3 row. The C3 has a charge LED only, per the Seeed C3 wiki pin map.
How do I read a XIAO pinout diagram?
Three names describe the same physical pin, and mixing them up is the most common wiring mistake on these boards.
- D name: the printed pad name, D0 through D10. Use it in Arduino code, for example
digitalWrite(D4, HIGH). - GPIO number: the chip pin number, for example GPIO2 or GPIO22. Use it in ESP-IDF code and in datasheets.
- A name: the analog name, A0 through A3 on the C3, A0 through A2 on the C6, A0 on the C5. Use it with
analogRead(A0).
The Seeed wiki diagram for each board shows the front and the back: the D pins and USB-C port on the front, the battery pads and JTAG test pads (MTDO, MTDI, MTCK, MTMS) on the back. Keep the Seeed wiki page for your board open while you wire. Some third party pages number the same D pads differently, and a table built for the wrong board will compile cleanly and do nothing.
What is the XIAO ESP32C3 pinout?
The C3 is the cheapest board of the four, with one catch: three of its header pins are strapping pins, so what you connect to them at reset matters. The table below follows the Seeed wiki C3 pin map.
| Pad | GPIO | Main function | Shared with |
|---|---|---|---|
| D0 | GPIO2 | Analog A0, ADC1_CH2 | Strapping |
| D1 | GPIO3 | Analog A1, ADC1_CH3 | Wake |
| D2 | GPIO4 | Analog A2, ADC1_CH4 | JTAG MTMS, wake |
| D3 | GPIO5 | Analog A3, ADC2_CH0 | JTAG MTDI, wake |
| D4 | GPIO6 | I2C SDA | JTAG MTCK |
| D5 | GPIO7 | I2C SCL | JTAG MTDO |
| D6 | GPIO21 | UART TX | Console |
| D7 | GPIO20 | UART RX | Console |
| D8 | GPIO8 | SPI SCK | Strapping |
| D9 | GPIO9 | SPI MISO | Strapping, BOOT |
| D10 | GPIO10 | SPI MOSI | Flash CS |
| 5V / GND / 3V3 | – | Power | 5 V, GND, 3.3 V out (700 mA max per Seeed wiki) |
Source: Seeed wiki C3 pin map.
D3 is the only ADC2 channel on the header, and ADC2 readings can be unreliable while WiFi is running, so use D0 to D2 (ADC1) for analog sensors when WiFi is on. Source: studiopieters C3 pinout guide. Only D0 to D3 can wake the chip from deep sleep. The C3 has no onboard antenna.
What is the XIAO ESP32C6 pinout?
The C6 is the Matter, Thread, and Zigbee board, and the friendliest to wire: none of its header pins is a strapping pin. The table below follows the Seeed wiki C6 pin map.
| Pad | GPIO | Main function | Shared with |
|---|---|---|---|
| D0 | GPIO0 | Analog A0, ADC | LP GPIO, wake |
| D1 | GPIO1 | Analog A1, ADC | LP GPIO, wake |
| D2 | GPIO2 | Analog A2, ADC | LP GPIO, wake |
| D3 | GPIO21 | GPIO | SDIO DATA1 |
| D4 | GPIO22 | I2C SDA | SDIO DATA2 |
| D5 | GPIO23 | I2C SCL | SDIO DATA3 |
| D6 | GPIO16 | UART TX | Console |
| D7 | GPIO17 | UART RX | Console |
| D8 | GPIO19 | SPI SCK | SDIO clock |
| D9 | GPIO20 | SPI MISO | SDIO DATA0 |
| D10 | GPIO18 | SPI MOSI | SDIO command |
| 5V / GND / 3V3 | – | Power | 5 V, GND, 3.3 V out |
Source: Seeed wiki C6 pin map. The chip has 7 ADC channels, but only D0, D1, and D2 are broken out as analog header pins.
The board carries both a small onboard ceramic antenna and a U.FL connector, and the choice is made in firmware through an RF switch. Pull GPIO3 low to enable the switch, then GPIO14 low selects the built-in antenna (the default) and GPIO14 high selects the external antenna. Neither GPIO is a header pin. Source: Seeed wiki C6 RF switch section. Only the low-power GPIOs, GPIO0 to GPIO7, can wake the chip from deep sleep, and the XIAO breaks out three of them.
What is the XIAO ESP32-C5 pinout?
The C5 is the newest board and the only one with dual-band WiFi, 2.4 GHz and 5 GHz. Its GPIO numbers jump around, but the bus positions are the same as the other boards. The table below follows the Seeed wiki C5 pin map.
| Pad | GPIO | Main function | Shared with |
|---|---|---|---|
| D0 | GPIO1 | Analog A0, ADC | LP GPIO, wake |
| D1 | GPIO0 | GPIO | LP GPIO |
| D2 | GPIO25 | GPIO | Strapping |
| D3 | GPIO7 | GPIO | SDIO DATA1, strapping |
| D4 | GPIO23 | I2C SDA | – |
| D5 | GPIO24 | I2C SCL | – |
| D6 | GPIO11 | UART TX | – |
| D7 | GPIO12 | UART RX | – |
| D8 | GPIO8 | SPI SCK | – |
| D9 | GPIO9 | SPI MISO | – |
| D10 | GPIO10 | SPI MOSI | – |
| 5V / GND / 3V3 | – | Power | 5 V, GND, 3.3 V out |
Source: Seeed wiki C5 pin map. The chip has 5 ADC channels, but only D0 is broken out as an analog header pin.
The battery voltage reading is built in: GPIO6 reads the battery and GPIO26 enables the measurement circuit, so you can read the cell voltage in code with no divider to solder. Source: Seeed wiki C5 battery section. The user LED is GPIO27.
What is the XIAO ESP32S3 pinout?
The S3 pinout is covered in full in our dedicated guide, Seeed XIAO ESP32S3 Pinout: GPIO, Camera, and Power, so this section is a summary only. The S3 breaks out the same 11 D pins: D0 to D5 are GPIO1 to GPIO6, D6 and D7 are GPIO43 and GPIO44 for UART, and D8 to D10 are GPIO7, GPIO8, and GPIO9 for SPI. I2C is D4 and D5, and 9 of the 11 pins can read analog voltages. The boot button is GPIO0. The Sense version adds a detachable camera and a microSD slot on an expansion board on the back, and the microSD chip select is GPIO21.
Which pins are shared with other hardware?
A pin that looks free on the header may already have a job. Check this table before you assign pins.
| Shared hardware | Board | Pins involved | What it means for your wiring |
|---|---|---|---|
| Antenna RF switch | C6 | GPIO3 (power), GPIO14 (select) | Internal, not header pins. GPIO3 low, then GPIO14 low for onboard or high for external. Source: Seeed wiki C6. |
| Antenna | C3 | U.FL connector only | No onboard antenna. Attach the external antenna or WiFi range will be poor. |
| Battery voltage read | C5 | GPIO6 (read), GPIO26 (enable) | Built-in divider. Drive GPIO26 high to read the battery on GPIO6. Source: Seeed wiki C5. |
| Camera, mic, microSD | S3 Sense only | Board-to-board connector, SD CS GPIO21 | On the expansion board, not the D header. See the S3 pinout guide. |
Which pins are free for your project on each board?
Free means no boot-time duty, no bus duty, and no shared hardware.
The bus pins are the same on all four boards (D4/D5 I2C, D6/D7 UART, D8 to D10 SPI) and are free whenever that bus is unused.
| Board | Free pins, no conditions | Pins that need care |
|---|---|---|
| C3 | D1 (GPIO3), D10 (GPIO10) | D0, D8, D9 (strapping); D2, D3, D4, D5 (JTAG) |
| C6 | D0, D1, D2, D3, D4, D5, D8, D9, D10 | D6, D7 (UART console) |
| C5 | D0, D1, D4, D5, D6, D7, D8, D9, D10 | D2, D3 (strapping) |
| S3 | D0, D1, D3, D4, D5, D8, D9 | D2 (strapping), D6, D7, D10 (see the S3 pinout guide) |
Sources: Seeed wiki pin maps; the S3 row follows our S3 pinout post.
Which pins are strapping and boot pins on each board?
Strapping pins are read by the chip at reset to pick the boot mode. A sensor that pulls one to the wrong level at reset can stop the board from booting or accepting an upload.
| Board | Strapping pins on the header | Boot button GPIO |
|---|---|---|
| C3 | D0 (GPIO2), D8 (GPIO8), D9 (GPIO9) | GPIO9 |
| C6 | None on the header | GPIO9 |
| C5 | D2 (GPIO25), D3 (GPIO7) | GPIO28 |
| S3 | D2 (GPIO3), plus GPIO0 on the BOOT button | GPIO0 |
The C3 pins come from the Seeed wiki C3 strapping section. The Seeed wiki has no strapping section for the C6 or the C5: the C6 list (GPIO4, GPIO5, GPIO8, GPIO9, GPIO15, all internal) comes from the SolderHub C6 guide, and the C5 pins come from the ESP32-C5 datasheet via the espboards C5 page, both secondary sources. Full S3 detail is in the S3 pinout guide.
If a board stops appearing as a USB port or refuses uploads after you wire something new, check the strapping pins first. Disconnect the new wiring, confirm the board uploads again, then rewire with the strapping pin left alone at boot.
What are the common mistakes?
- Using a pin table from the wrong board. D4 is GPIO6 on the C3, GPIO22 on the C6, GPIO5 on the S3, and GPIO23 on the C5. The D name is the same and the GPIO number is not.
- Wiring a sensor to a strapping pin on the C3. D0, D8, and D9 decide the boot mode. A sensor that pulls one low at reset can leave the board unresponsive.
- Expecting analog reads on every D pin. Only D0 to D3 read analog on the C3, only D0 to D2 on the C6, and only D0 on the C5. The S3 is the analog-rich board with 9 analog header pins.
- Running the C3 with no antenna. The C3 has no onboard antenna. WiFi will barely work without the external antenna on the U.FL connector.
How do I troubleshoot a XIAO pinout problem?
The board does not appear as a USB port. Try a different USB-C cable, one that carries data, not a charge-only cable. Then try bootloader mode: on the C6, hold BOOT, connect the cable, release BOOT, and upload Blink. Source: Seeed wiki C6 bootloader section.
Uploads fail after new wiring. Disconnect the new wiring and try again. If the upload works, a strapping pin is held at the wrong level. On the C3 check D0, D8, and D9 first. On the C5 check D2 and D3. On the S3 check D2.
analogRead returns 4095 or 0 all the time. Check that the pin is an analog pin on your board. On the C5 only D0 reads analog on the header. On the C6 only D0 to D2 do. On the C3 only D0 to D3 do. Also check that the sensor output stays inside 0 to 3.3 V.
Which pins can I use for my project?
Pick the board first, then the pins. If you have not picked a board, see XIAO ESP32C3 vs C6 vs S3 vs C5: Pick the Right Board.
| Project | Board | Pins to use |
|---|---|---|
| I2C sensor or OLED | Any | D4 SDA, D5 SCL |
| SPI display or SD card | Any | D8 SCK, D9 MISO, D10 MOSI, plus a free pin for chip select (on the C3, use D1, not D0) |
| Analog sensor | S3 first, C3 second | S3: D0 to D5, D8 to D10; C3: D0 to D2 |
| Battery-powered sensor node | C6 or C5 | C6: D0 to D2 for wake and analog; C5: D0 for wake |
Parts used in this guide
Prices and stock were verified live on qualityrcparts.com on 2026-11-21 through the public Store API. All four items are in stock and purchasable.
- Seeed Studio XIAO ESP32C3 Development Board, 1-Pack (ID 17820) – $13.99. Cheapest board here, for WiFi sensor nodes and battery builds.
- Seeed Studio XIAO ESP32C6 Development Board, 1-Pack (ID 17835) – $15.99. The Matter, Thread, and Zigbee board, with the most carefree pins of the four. WiFi 6.
- Seeed Studio XIAO ESP32-C5 Development Board, 1-Pack (ID 18380) – $17.99. The only board here with dual-band WiFi, 2.4 GHz and 5 GHz, plus a built-in battery voltage read on GPIO6.
- Seeed Studio XIAO ESP32S3 Development Board, 1-Pack (ID 17839) – $21.49. The most capable board here, with 8 MB PSRAM and 8 MB flash and 9 analog header pins.
Shipped fast and securely from our secure facility in Queensbury, NY. QRC ships within the USA only.
Related guides
- Seeed XIAO ESP32S3 Pinout: GPIO, Camera, and Power
- XIAO ESP32C3 vs C6 vs S3 vs C5: Pick the Right Board
- Seeed XIAO ESP32S3 Guide: Standard Board vs Sense Board
- How to Power ESP32 and Arduino Projects on LiPo Power
- How to Pick an ESP32 SuperMini Board for Tiny Builds
- How to Use the ESP32-S3-CAM Board for Camera Projects
FAQ
How many GPIO pins does a XIAO ESP32 board have? 11, named D0 through D10, on all four boards. The header also carries 5V, GND, and 3V3. Source: Seeed wiki pin maps.
Which pins are I2C on the XIAO ESP32 boards? D4 is SDA and D5 is SCL on all four boards. Source: Seeed wiki pin maps.
Which pins are SPI on the XIAO ESP32 boards? D8 is SCK, D9 is MISO, and D10 is MOSI on all four boards. Source: Seeed wiki pin maps.
Can I use 5 volt sensors with a XIAO ESP32 board? No. All four boards run 3.3 V logic, and a voltage above 3.3 V on a GPIO pin can damage the chip. Use a level shifter. Source: Seeed wiki power sections.
Which XIAO pins are strapping pins? On the C3, D0 (GPIO2), D8 (GPIO8), and D9 (GPIO9). On the C5, D2 (GPIO25) and D3 (GPIO7). On the S3, D2 (GPIO3). On the C6, none of the header pins is a strapping pin.
Why does my XIAO ESP32C3 not boot after I wire a sensor? The usual cause is a strapping pin held at the wrong level at reset. D0, D8, and D9 decide the boot mode on the C3. Disconnect the new wiring, confirm the board boots, then move the sensor to D1 or D10.
Does the XIAO ESP32-C5 have an analog pin? Yes, one on the header: D0 (GPIO1). The chip has 5 ADC channels in total, but the others are not broken out on the header. Source: Seeed wiki C5 pin map.
Sources
- Seeed wiki, Getting Started with Seeed Studio XIAO ESP32C3: https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/
- Seeed wiki, Getting Started with Seeed Studio XIAO ESP32C6: https://wiki.seeedstudio.com/xiao_esp32c6_getting_started/
- Seeed wiki, Getting Started with Seeed Studio XIAO ESP32-C5: https://wiki.seeedstudio.com/xiao_esp32c5_getting_started/
- Seeed wiki, Pin Multiplexing with Seeed Studio XIAO ESP32-S3 (Sense): https://wiki.seeedstudio.com/xiao_esp32s3_pin_multiplexing/
- Espressif ESP32-C3 datasheet (linked from the Seeed C3 wiki): https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf
- Espressif ESP32-C6 datasheet (linked from the Seeed C6 wiki): https://www.espressif.com/sites/default/files/documentation/esp32-c6_datasheet_en.pdf
- Espressif ESP32-C5 datasheet (linked from the Seeed C5 wiki): https://www.espressif.com/sites/default/files/documentation/esp32-c5_datasheet_en.pdf
- ESPboards XIAO ESP32C5 pinout (secondary, for C5 strapping pins): https://www.espboards.dev/esp32/xiao-esp32c5/
- SolderHub XIAO ESP32C6 pinout guide (secondary, for C6 strapping pins): https://solderhub.com/articles/xiao-esp32c6-pinout-guide
- Studiopieters XIAO ESP32C3 pinout (secondary, for ADC2 note): https://www.studiopieters.nl/xiao-esp32c3-pinout/
Last updated: 2026-11-21
Change log
- 2026-11-21: Draft created. Full C3, C6, and C5 pin tables from the Seeed wiki pin maps; S3 covered as a summary with a link to the dedicated S3 pinout post. Shared-pin, free-pin, and strapping tables added. No live post gives full C3, C6, or C5 pin tables, verified against posts 23363, 22718, and 18592.





