Comparison · Beginner · 4 min read
ESP32 vs ESP8266
Which Wi-Fi Board Should You Use?
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Choose the ESP32 for almost every new project. It has two cores at up to 240 MHz, far more RAM, about 25 usable GPIO pins, many 12-bit ADC inputs, touch pins and Bluetooth, for only a little more money. The ESP8266 is still fine for simple Wi-Fi jobs such as a single sensor or relay, and boards like the NodeMCU and Wemos D1 Mini are cheap and well documented.
Key specs at a glance
- ESP8266 CPU
- 1 core, 80/160 MHz
- ESP32 CPU
- 2 cores, up to 240 MHz (classic ESP32)
- RAM
- ESP8266 about 80 KB user; ESP32 520 KB SRAM
- Wireless
- ESP8266 Wi-Fi only; ESP32 Wi-Fi + Bluetooth Classic + BLE
- ADC
- ESP8266 one 10-bit input; ESP32 up to 18 12-bit inputs
- Logic
- Both 3.3 V, not 5 V tolerant
ESP32 vs ESP8266 at a glance
| Feature | ESP8266 | ESP32 (classic) |
|---|---|---|
| CPU | Tensilica L106, 1 core, 80/160 MHz | Xtensa LX6, 2 cores, up to 240 MHz |
| SRAM | About 80 KB available to user code | 520 KB (plus optional PSRAM) |
| Wi-Fi | 802.11 b/g/n 2.4 GHz | 802.11 b/g/n 2.4 GHz |
| Bluetooth | None | Bluetooth Classic and BLE 4.2 |
| Usable GPIO | About 9 to 11 | About 25 |
| ADC | 1 input, 10-bit | Up to 18 inputs, 12-bit (ADC2 unavailable with Wi-Fi on) |
| DAC | None | 2 x 8-bit |
| Touch inputs | None | 10 capacitive touch pins |
| Hardware UART | 1.5 (TX-only second UART) | 3 |
| Deep sleep | About 20 µA | About 10 µA (board regulators add more) |
| Typical boards | NodeMCU, Wemos D1 Mini, ESP-01 | ESP32 DevKit, ESP32-C3 SuperMini, ESP32-S3 boards |
- CPU
- ESP8266:
- Tensilica L106, 1 core, 80/160 MHz
- ESP32 (classic):
- Xtensa LX6, 2 cores, up to 240 MHz
- SRAM
- ESP8266:
- About 80 KB available to user code
- ESP32 (classic):
- 520 KB (plus optional PSRAM)
- Wi-Fi
- ESP8266:
- 802.11 b/g/n 2.4 GHz
- ESP32 (classic):
- 802.11 b/g/n 2.4 GHz
- Bluetooth
- ESP8266:
- None
- ESP32 (classic):
- Bluetooth Classic and BLE 4.2
- Usable GPIO
- ESP8266:
- About 9 to 11
- ESP32 (classic):
- About 25
- ADC
- ESP8266:
- 1 input, 10-bit
- ESP32 (classic):
- Up to 18 inputs, 12-bit (ADC2 unavailable with Wi-Fi on)
- DAC
- ESP8266:
- None
- ESP32 (classic):
- 2 x 8-bit
- Touch inputs
- ESP8266:
- None
- ESP32 (classic):
- 10 capacitive touch pins
- Hardware UART
- ESP8266:
- 1.5 (TX-only second UART)
- ESP32 (classic):
- 3
- Deep sleep
- ESP8266:
- About 20 µA
- ESP32 (classic):
- About 10 µA (board regulators add more)
- Typical boards
- ESP8266:
- NodeMCU, Wemos D1 Mini, ESP-01
- ESP32 (classic):
- ESP32 DevKit, ESP32-C3 SuperMini, ESP32-S3 boards
The newer ESP32 variants
Espressif's newer chips keep the ESP32 name but differ a lot, so check which one a board uses.
single RISC-V core at 160 MHz, Wi-Fi and BLE 5 (no Bluetooth Classic), native USB. Small, cheap and frugal; a great ESP8266 replacement.
two LX7 cores at 240 MHz, native USB, vector instructions for AI and camera work, BLE 5. Best for displays, cameras and TinyML.
Wi-Fi 6, BLE 5 and an 802.15.4 radio for Thread and Zigbee. Good for smart-home devices.
Wi-Fi only with native USB; less common now.
Code written with the Arduino ESP32 core mostly runs on all of them, but pin numbers and peripherals change. See the ESP32 guide for pinouts.
When the ESP8266 still makes sense
- You already have NodeMCU or D1 Mini boards and a working sketch.
- The job is one sensor or one relay reporting over Wi-Fi.
- You want the huge library of ESP8266 tutorials, Tasmota firmware or very cheap ESP-01 modules.
Move to the ESP32 when you need more than a few pins, more than one analog input, Bluetooth, a display, a camera, or heavy web pages and TLS (HTTPS), which strain the ESP8266's memory. See the ESP8266 NodeMCU guide.
Porting code from ESP8266 to ESP32
Most Arduino code moves over with small changes:
- Replace
#include <ESP8266WiFi.h>with#include <WiFi.h>andESP8266WebServerwithWebServer. - NodeMCU
D1,D2pin names do not exist on ESP32; use GPIO numbers. analogReadreturns 0 to 4095 instead of 0 to 1023.- Use pins from ADC1 (GPIO 32 to 39) for analog readings while Wi-Fi is on.
- Avoid the ESP32 strapping pins (0, 2, 12, 15) for things that pull them at boot.
Common mistakes to avoid
- Using ADC2 pins on an ESP32 while Wi-Fi is active; reads fail.
- Connecting 5 V signals to either chip without a level shifter.
- Assuming every 'ESP32' board has Bluetooth Classic; the C3, S3 and C6 have BLE only.
- Powering a board from a weak supply so Wi-Fi transmit peaks cause brownout resets.
- Choosing an ESP8266 for an HTTPS-heavy project and running out of memory.
Frequently asked questions
Is ESP32 better than ESP8266?
For most projects, yes: more speed, RAM, pins, analog inputs and Bluetooth for a small price difference. The ESP8266 is still fine for simple single-sensor Wi-Fi jobs.
Can ESP8266 code run on ESP32?
Usually with small changes: different Wi-Fi and web server library names, GPIO numbers instead of D-pin names, and 12-bit analog readings.
Does the ESP8266 have Bluetooth?
No. It has Wi-Fi only. Use an ESP32 (or an ESP32-C3 for BLE) if you need Bluetooth.
Which uses less power, ESP32 or ESP8266?
Both draw about 70 to 200 mA while using Wi-Fi. In deep sleep the ESP32 chips go lower, and the ESP32-C3 is especially frugal, but the board's regulator and LEDs often dominate.
Which ESP32 should a beginner buy?
A classic ESP32 DevKit or an ESP32-C3 SuperMini for small projects; an ESP32-S3 board if you plan to use a display, camera or USB features.
Parts for this guide
Terms in this guide
Projects that use it
Put this into practice: 249 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Espressif ESP8266EX datasheet
- Espressif ESP32 series datasheet
- Espressif ESP32-C3, ESP32-S3 and ESP32-C6 datasheets
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



