[{"data":1,"prerenderedAt":410},["ShallowReactive",2],{"post-esp32-vs-esp8266-en":3,"related-posts-esp32-vs-esp8266-en":365,"related-categories-esp32-vs-esp8266-en":393},{"id":4,"title":5,"author":6,"authorImageUrl":7,"authorUrl":8,"body":9,"categorySlug":323,"categoryText":324,"dateModified":325,"datePublished":326,"description":327,"extension":328,"faqs":329,"image":348,"imageAlt":349,"language":350,"meta":351,"navigation":352,"path":353,"seo":354,"sitemap":355,"stem":356,"summary":357,"tags":358,"__hash__":364},"blog\u002Fblog\u002Fesp32-vs-esp8266.md","ESP32 vs ESP8266: Specs, Differences and Which to Pick","Mauro Brambilla","\u002Fimages\u002Fauthors\u002Fbruma.jpg","\u002Fabout",{"type":10,"value":11,"toc":312},"minimark",[12,16,38,43,56,63,69,77,83,95,106,110,119,128,132,135,140,143,147,150,155,198,202,205,211,215,236,249,253,272,288,292,298,301],[13,14,15],"p",{},"Pick an ESP32 for any new project. The ESP32 has up to two 240 MHz cores, 520 KB of SRAM, 34 GPIOs, and Wi-Fi plus Bluetooth. The ESP8266 is a single-core, Wi-Fi-only chip that Espressif now marks \"not recommended for new designs\". It still fits existing firmware and very small Wi-Fi nodes, and the rest of this post tells you where the line is.",[13,17,18,19,26,27,32,33,37],{},"Both chips come from Espressif, and on a breadboard they look like twins: a cheap 3.3 V board, a USB cable, the same Arduino sketch for blinking an LED. The differences show up later, when you want to read two analog sensors, keep a TLS connection open while serving a web page, or add Bluetooth setup. Every number below comes from the ",[20,21,25],"a",{"href":22,"rel":23},"https:\u002F\u002Fdocumentation.espressif.com\u002Fesp32_datasheet_en.pdf",[24],"nofollow","ESP32 datasheet"," and the ",[20,28,31],{"href":29,"rel":30},"https:\u002F\u002Fdocumentation.espressif.com\u002F0a-esp8266ex_datasheet_en.pdf",[24],"ESP8266EX datasheet",", and I've built all three ",[20,34,36],{"href":35},"\u002Fblog\u002Fwhat-is-opengizmo","OpenGizmo projects"," on the ESP32 family, so I'll say where that mattered.",[39,40,42],"h2",{"id":41},"how-do-the-esp32-and-esp8266-compare-on-paper","How do the ESP32 and ESP8266 compare on paper?",[13,44,45,46,50,51,55],{},"A ",[47,48,49],"strong",{},"system on a chip (SoC)"," puts the CPU, memory, radios and peripherals in one package; the ESP32 and the ESP8266EX are both SoCs, and the table compares the chips themselves, not any dev board built around them. If \"microcontroller\" is a new word, ",[20,52,54],{"href":53},"\u002Fblog\u002Fwhat-is-a-microcontroller","what a microcontroller is"," covers it first.",[13,57,58],{},[59,60],"img",{"alt":61,"src":62},"Side-by-side spec card of ESP32 and ESP8266EX with cores, SRAM, GPIO, ADC, Wi-Fi speed, Bluetooth and deep-sleep current","\u002Fimages\u002Fblog\u002Fesp32-vs-esp8266-spec-card.webp",[64,65],"blog-table",{":headers":66,":highlightCol":67,":rows":68},"[\"Spec\",\"ESP32 (original)\",\"ESP8266EX\"]","1","[[\"CPU\",\"Xtensa LX6, 1 or 2 cores\",\"Tensilica L106, 1 core\"],[\"Max clock\",\"240 MHz\",\"160 MHz\"],[\"SRAM\",\"520 KB\",\"Under 50 kB left for your program in station mode\"],[\"GPIO\",\"34 programmable, 6 input-only\",\"17 pins\"],[\"ADC\",\"12-bit SAR, up to 18 channels\",\"10-bit SAR, 1 pin, 0 to 1.0 V\"],[\"DAC \u002F touch\",\"2 × 8-bit DAC, 10 touch sensors\",\"None\"],[\"Wi-Fi\",\"802.11 b\u002Fg\u002Fn, 2.4 GHz, up to 150 Mbps\",\"802.11 b\u002Fg\u002Fn HT20, 2.4 GHz, up to 72.2 Mbps\"],[\"Bluetooth\",\"4.2 BR\u002FEDR + Bluetooth LE\",\"None\"],[\"Deep sleep\",\"10 µA (RTC timer + RTC memory)\",\"20 µA, measured at 2.5 V\"],[\"Supply\",\"2.3 V to 3.6 V\",\"2.5 V to 3.6 V\"]]",[13,70,71,72,76],{},"The figures are from the ESP32 datasheet v5.3 (the ",[20,73,75],{"href":22,"rel":74},[24],"feature list"," and its power table) and the ESP8266EX datasheet v7.1. Three of them deserve a second look.",[13,78,79,82],{},[47,80,81],{},"RAM."," The ESP8266EX datasheet says the memory available to users is \"RAM size \u003C 50 kB\" when the chip is a Wi-Fi station connected to a router. That heap has to hold your web server, JSON buffers and any TLS session, which is why HTTPS clients on this chip are a constant balancing act. The ESP32's 520 KB of SRAM is roughly ten times that, and boards with external PSRAM add more.",[13,84,85,88,89,94],{},[47,86,87],{},"Analog input."," The ESP8266EX has one ADC, on the TOUT pin, and the datasheet gives it an input range of 0 to 1.0 V. Two analog sensors mean an external ADC chip. The ESP32 has up to 18 channels, but they come with a catch: ESP-IDF's ",[20,90,93],{"href":91,"rel":92},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Fesp-idf\u002Fen\u002Flatest\u002Fesp32\u002Fapi-reference\u002Fperipherals\u002Fadc\u002Fadc_oneshot.html",[24],"ADC documentation"," notes that ADC2 is also used by Wi-Fi, so sensors you read while Wi-Fi is on belong on ADC1 pins (GPIO32 to GPIO39 on the original ESP32).",[13,96,97,100,101,105],{},[47,98,99],{},"Sleep current."," The datasheet lists 10 µA against 20 µA, but chip numbers aren't board numbers: a dev board's USB bridge and regulator usually draw far more. ",[20,102,104],{"href":103},"\u002Fblog\u002Fesp32-deep-sleep-real-current-draw","ESP32 deep sleep current, chip versus dev board"," goes through where the microamps go.",[39,107,109],{"id":108},"is-the-esp8266-still-worth-buying-in-2026","Is the ESP8266 still worth buying in 2026?",[13,111,112,113,118],{},"Espressif has not discontinued the ESP8266, but as of November 2026 it treats it as a legacy part. The ESP8266EX datasheet (version 7.1, dated 2025.11) carries an NRND stamp on its pages, and its revision history says the product marketing status was updated to Not Recommended for New Designs. NRND means just that: the product hasn't been discontinued, but Espressif no longer recommends it for new designs. The ",[20,114,117],{"href":115,"rel":116},"https:\u002F\u002Fwww.espressif.com\u002Fen\u002Fproducts\u002Flongevity-commitment",[24],"longevity commitment page"," lists the ESP8266 with an \"at least 15 years\" commitment starting January 1, 2014, which works out to at least 2029 (my arithmetic: the page doesn't print an end year). Espressif's site menu also suggests upgrading to the ESP32-C2 (ESP8684).",[13,120,121,122,127],{},"For you, that means the chip won't vanish tomorrow, and a board with an ESP8266 will keep working for as long as you keep powering it. It also means a new product design shouldn't depend on it, and that tutorials, libraries and answers will slowly drift toward the ESP32 family. The community ",[20,123,126],{"href":124,"rel":125},"https:\u002F\u002Fgithub.com\u002Fesp8266\u002FArduino",[24],"Arduino core for ESP8266"," is still on GitHub with its latest release listed as 3.1.2; I didn't check its release date. I couldn't verify retail stock or prices for either chip, so there's no price column here: check a current listing before you decide.",[39,129,131],{"id":130},"when-does-the-esp8266-still-make-sense","When does the ESP8266 still make sense?",[13,133,134],{},"Keep the ESP8266 when the firmware already works and the hardware isn't the problem. Rewriting a sketch that has run a relay for years, only to move to a newer chip, spends your time on a risk you don't have. It also fits when you're repairing or cloning an existing device built around it, or when the job is genuinely small: one sensor, one Wi-Fi POST every few minutes, a pin or two.",[136,137],"blog-list",{":items":138,"variant":139},"[\"Existing ESP8266 firmware that works and has no new requirements\",\"Replacing a dead board in a device that already uses an ESP8266\",\"A single-sensor Wi-Fi node with one analog input at most, 0 to 1.0 V\",\"A small sketch that fits comfortably in under 50 kB of heap\"]","checkmark",[13,141,142],{},"Even for a small node, the ESP32-C3 is also a single core and runs 2.4 GHz Wi-Fi like the ESP8266, so a new build gives up nothing in simplicity by choosing it.",[39,144,146],{"id":145},"when-should-you-pick-an-esp32-instead","When should you pick an ESP32 instead?",[13,148,149],{},"Choose an ESP32 family chip as soon as one of these applies:",[64,151],{":headers":152,":highlightCol":153,":rows":154},"[\"You need\",\"Why the ESP8266 can't\",\"Pick\"]","-1","[[\"Bluetooth or BLE setup\",\"No Bluetooth radio at all\",\"Any ESP32 family chip\"],[\"Classic Bluetooth, DAC output\",\"Only the original ESP32 has BR\u002FEDR and DACs\",\"ESP32\"],[\"A camera module\",\"I found no PSRAM or camera interface in the ESP8266EX datasheet\",\"ESP32 (AI Thinker ESP32-CAM)\"],[\"Two or more analog inputs\",\"One ADC pin, 0 to 1.0 V\",\"ESP32 or ESP32-S3\"],[\"A web server plus HTTPS client\",\"Under 50 kB of heap in station mode\",\"Any ESP32 family chip\"],[\"Built-in USB (no USB-serial chip)\",\"No USB in the datasheet: boards add a USB-serial chip\",\"ESP32-S3 or ESP32-C3 (USB OTG only on the S3)\"],[\"Wi-Fi and sensors on separate cores\",\"One core, and the datasheet leaves 80% of it to your code\",\"ESP32 or ESP32-S3\"]]",[13,156,157,158,26,162,166,167,171,172,177,178,181,182,185,186,190,191,193,194,197],{},"Here is how that played out in the OpenGizmo firmware. The ",[20,159,161],{"href":160},"\u002Fprojects\u002Fgizmo-ticker","Gizmo Ticker",[20,163,165],{"href":164},"\u002Fprojects\u002Fgizmo-reolink-switch","Gizmo Reolink Switch"," run on the Seeed Studio XIAO ESP32-S3, and each serves a web app, answers a captive portal and makes HTTPS requests (to the CoinGecko API and to the Reolink NVR respectively). Their ",[168,169,170],"code",{},"platformio.ini"," files, for example the ",[20,173,176],{"href":174,"rel":175},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[24],"ticker's",", pin ",[168,179,180],{},"espressif32 @ 8.0.0"," with the ",[168,183,184],{},"seeed_xiao_esp32s3"," board. The ",[20,187,189],{"href":188},"\u002Fprojects\u002Fgizmo-camera","Gizmo Camera"," uses the AI Thinker ESP32-CAM, and its ",[168,192,170],{}," selects the ",[168,195,196],{},"esp32cam"," board for its PSRAM, which holds the camera frame buffers. I haven't tried to port any of them to an ESP8266, so I can't tell you where one would first run out of room; the numbers above say the heap would be the first suspect.",[39,199,201],{"id":200},"which-esp32-replaces-an-esp8266","Which ESP32 replaces an ESP8266?",[13,203,204],{},"\"ESP32\" is a family, not one chip, and the original ESP32 is only one of four sensible picks. This table puts the candidates next to each other; the numbers come from each chip's datasheet.",[13,206,207],{},[59,208],{"alt":209,"src":210},"An older ESP8266 board handing a relay baton to a newer ESP32 dev board while a maker watches with a USB cable in hand","\u002Fimages\u002Fblog\u002Fesp32-vs-esp8266-illustration.webp",[64,212],{":headers":213,":highlightCol":153,":rows":214},"[\"Chip\",\"CPU\",\"SRAM\",\"GPIO\",\"Radios\",\"Deep sleep\"]","[[\"ESP32\",\"2 × LX6, 240 MHz\",\"520 KB\",\"34\",\"Wi-Fi 4, Bluetooth 4.2 + LE\",\"10 µA\"],[\"ESP32-S3\",\"2 × LX7, 240 MHz\",\"512 KB\",\"45\",\"Wi-Fi 4, Bluetooth 5 LE\",\"7 µA\"],[\"ESP32-C3\",\"1 × RISC-V, 160 MHz\",\"400 KB\",\"22\",\"Wi-Fi 4, Bluetooth 5 LE\",\"5 µA\"],[\"ESP32-C2 (ESP8684)\",\"1 × RISC-V, 120 MHz\",\"272 KB\",\"14\",\"Wi-Fi 4, Bluetooth 5.3 LE\",\"5 µA\"]]",[13,216,217,218,223,224,229,230,235],{},"Read the GPIO column as the chip's maximum: the datasheets note that some package variants use pins for in-package flash, so a given module exposes fewer. The sources are the ",[20,219,222],{"href":220,"rel":221},"https:\u002F\u002Fdocumentation.espressif.com\u002Fesp32-s3_datasheet_en.pdf",[24],"ESP32-S3",", ",[20,225,228],{"href":226,"rel":227},"https:\u002F\u002Fdocumentation.espressif.com\u002Fesp32-c3_datasheet_en.pdf",[24],"ESP32-C3"," and ",[20,231,234],{"href":232,"rel":233},"https:\u002F\u002Fdocumentation.espressif.com\u002Fesp8684_datasheet_en.pdf",[24],"ESP8684 (ESP32-C2)"," datasheets.",[13,237,238,239,243,244,248],{},"The ESP32-C2 is Espressif's own suggestion, but it has the least RAM and the fewest pins of the four, and the ESP32-C3 is the one most boards use. For a straight swap of an ESP8266 sketch, I'd start with the C3. For a project that serves a web app, calls HTTPS APIs and drives a display, I'd start with the S3, as the OpenGizmo projects do. The longer reasoning is in ",[20,240,242],{"href":241},"\u002Fblog\u002Fwhich-esp32-chip-should-you-buy","which ESP32 chip you should buy",", and the three XIAO boards are compared in ",[20,245,247],{"href":246},"\u002Fblog\u002Fxiao-esp32s3-vs-c3-vs-c6","XIAO ESP32-S3 vs C3 vs C6",".",[39,250,252],{"id":251},"is-the-esp32-harder-to-program-than-the-esp8266","Is the ESP32 harder to program than the ESP8266?",[13,254,255,256,229,261,266,267,271],{},"No, for the basics. Both chips run in the Arduino framework, and PlatformIO supports both through its ",[20,257,260],{"href":258,"rel":259},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fplatforms\u002Fespressif32.html",[24],"Espressif 32",[20,262,265],{"href":263,"rel":264},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fplatforms\u002Fespressif8266.html",[24],"Espressif 8266"," platforms. If you haven't chosen a toolchain yet, ",[20,268,270],{"href":269},"\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32","Arduino IDE vs PlatformIO for ESP32"," compares them.",[13,273,274,275,278,279,282,283,287],{},"Porting an ESP8266 sketch is usually a short job: ",[168,276,277],{},"WiFi.h"," replaces ",[168,280,281],{},"ESP8266WiFi.h",", and the web server and mDNS libraries have ESP32 versions. Pins are where you need care, on both chips. The ESP8266EX datasheet says GPIO0, GPIO2 and MTDO (GPIO15) select the boot mode, so what you wire to them at power-up matters; the ESP32 has its own strapping pins, which ",[20,284,286],{"href":285},"\u002Fblog\u002Fesp32-strapping-pins-by-chip","this guide lists chip by chip",". One more difference: the datasheet maps GPIO6 to GPIO11 to the external SPI flash on the ESP8266EX, so six of the 17 pins aren't free on a real module, and a dev board may expose fewer than you expect. Check your board's pinout, not just the chip's.",[39,289,291],{"id":290},"so-which-one-should-you-pick","So which one should you pick?",[13,293,294],{},[59,295],{"alt":296,"src":297},"Decision tree: working ESP8266 firmware keeps the ESP8266, classic Bluetooth or a DAC means ESP32, USB or many GPIO means ESP32-S3, otherwise ESP32-C3","\u002Fimages\u002Fblog\u002Fesp32-vs-esp8266-decision-tree.webp",[13,299,300],{},"The short version: if you are starting fresh, the ESP8266 doesn't win any row of the spec table except, arguably, familiarity. The tree above covers the choice in three questions, and the limits are worth stating plainly. It assumes you're buying a board today; it says nothing about price, which I didn't verify; and the \"keep\" answer stops being right the moment you need a feature the chip doesn't have, such as Bluetooth setup, because no firmware tweak adds a radio.",[13,302,303,304,307,308,248],{},"The ESP8266 earned its place as the chip that made Wi-Fi gadgets cheap, and it will keep running the ones already built. For the next one, take an ESP32 family board. If you can't decide between the variants, read ",[20,305,306],{"href":241},"which ESP32 chip to buy",", then see what the family looks like in practice in ",[20,309,311],{"href":310},"\u002Fblog\u002Fwhat-is-the-esp32","what the ESP32 is",{"title":313,"searchDepth":314,"depth":314,"links":315},"",2,[316,317,318,319,320,321,322],{"id":41,"depth":314,"text":42},{"id":108,"depth":314,"text":109},{"id":130,"depth":314,"text":131},{"id":145,"depth":314,"text":146},{"id":200,"depth":314,"text":201},{"id":251,"depth":314,"text":252},{"id":290,"depth":314,"text":291},"comparisons","Comparisons","2026-11-14T00:00:00Z","2026-06-25T00:00:00Z","ESP32 vs ESP8266 compared on cores, SRAM, GPIO, ADC, Bluetooth and sleep current from the datasheets, plus when the ESP8266 still makes sense.","md",[330,333,336,339,342,345],{"question":331,"answer":332},"What is the difference between ESP32 and ESP8266?","The ESP32 has one or two Xtensa LX6 cores at up to 240 MHz, 520 KB of SRAM, 34 GPIOs, Wi-Fi and Bluetooth 4.2 with LE. The ESP8266EX has one core at up to 160 MHz, 17 GPIOs, one 10-bit ADC pin, Wi-Fi only, and under 50 kB of RAM for your program.",{"question":334,"answer":335},"Is the ESP8266 discontinued?","Not discontinued, but not recommended for new designs. Espressif's ESP8266EX datasheet (version 7.1, November 2025) is stamped NRND, and its longevity page lists a 15-year commitment from January 2014 and points to the ESP32-C2 as the upgrade. As of November 2026 I did not verify retail availability.",{"question":337,"answer":338},"Does the ESP8266 have Bluetooth?","No. The ESP8266EX is a Wi-Fi-only chip: 802.11 b\u002Fg\u002Fn on 2.4 GHz. Bluetooth starts with the ESP32 family. The original ESP32 has Bluetooth 4.2 BR\u002FEDR and Bluetooth LE, while the ESP32-S3, ESP32-C3 and ESP32-C2 have Bluetooth LE only.",{"question":340,"answer":341},"Should a beginner buy an ESP32 or an ESP8266?","An ESP32 family board. Tutorials for both exist, but the ESP32 gives you more RAM, more pins and Bluetooth for a similar board size, and Espressif no longer recommends the ESP8266 for new designs. A single-core ESP32-C3 board is the closest match to an ESP8266 in simplicity.",{"question":343,"answer":344},"Which ESP32 replaces the ESP8266?","Espressif's website suggests the ESP32-C2 (ESP8684) as the ESP8266 upgrade. In practice most makers pick the ESP32-C3: one RISC-V core at 160 MHz, 400 KB of SRAM, Wi-Fi 4 and Bluetooth 5 LE, and a sleep current of 5 µA in the datasheet.",{"question":346,"answer":347},"Can the ESP8266 and ESP32 use the same code?","Mostly the Arduino API: digitalWrite, Wire, WiFi and WebServer-style code often ports with small changes. Pin numbers, the single ADC pin, EEPROM and flash filesystem calls, and anything timing-sensitive need a review. PlatformIO builds both from one project with two environments.","\u002Fimages\u002Fblog\u002Fesp32-vs-esp8266.png","A maker with a hand on his chin weighs two labels, ESP32 and ESP8266, surrounded by a router, a sensor, an LED, an OLED screen and a USB module.","en",{},true,"\u002Fblog\u002Fesp32-vs-esp8266",{"title":5,"description":327},{"loc":353},"blog\u002Fesp32-vs-esp8266","Pick an ESP32 for new projects: up to two 240 MHz cores, 520 KB of SRAM and Bluetooth. The ESP8266 is one 160 MHz core, Wi-Fi only, and Espressif marks it NRND.",[359,360,361,362,363],"ESP32","ESP8266","Microcontrollers","Hardware","Wi-Fi","IVlpSikUdvgfRKDcfXMr_9XkIxYnWWs_PYghob7yVCo",[366,372,378,386],{"title":367,"description":368,"image":369,"categoryText":324,"categorySlug":323,"tags":370,"path":246},"XIAO ESP32-S3 vs C3 vs C6: Which XIAO to Buy","XIAO ESP32-S3 vs ESP32-C3 vs C6 on memory, radios, antenna, battery charging and deep sleep, from Seeed's wiki, plus why OpenGizmo runs on the S3.","\u002Fimages\u002Fblog\u002Fxiao-esp32s3-vs-c3-vs-c6.jpg",[371,222,359,361,362],"XIAO ESP32-S3",{"title":373,"description":374,"image":375,"categoryText":324,"categorySlug":323,"tags":376,"path":241},"Which ESP32 Should You Buy? S3, C3, C6, P4 Compared","Buy an ESP32-S3 board for most projects. See when the C3, C6, P4 or the original ESP32 fits better, with datasheet numbers as of November 2026.","\u002Fimages\u002Fblog\u002Fwhich-esp32-chip-should-you-buy.jpg",[359,222,361,362,377],"Home Automation",{"title":379,"description":380,"image":381,"categoryText":382,"categorySlug":383,"tags":384,"path":285},"ESP32 Strapping Pins by Chip: S3, C3, C6, Classic","Every ESP32 strapping pin on the classic ESP32, S3, C3 and C6 with its default level and what it selects, straight from the datasheets, plus safe-use rules.","\u002Fimages\u002Fblog\u002Fesp32-strapping-pins-by-chip.jpg","Guides","guides",[359,222,361,362,385],"Embedded Systems",{"title":387,"description":388,"image":389,"categoryText":382,"categorySlug":383,"tags":390,"path":103},"ESP32 Deep Sleep Current: Chip vs Dev Board","ESP32 deep sleep current is 5 to 10 µA for the chip, but 14 µA to several mA on a dev board. Datasheet figures, wake-up sources and battery life math.","\u002Fimages\u002Fblog\u002Fesp32-deep-sleep-real-current-draw.jpg",[359,222,391,361,362,392],"Power","IoT",[394,400,406],{"name":395,"slug":396,"path":397,"count":398,"image":399},"Builds","builds","\u002Fblog\u002Fcategories\u002Fbuilds",6,"\u002Fimages\u002Fblog\u002F3d-printed-esp32-enclosure-design-guide.jpg",{"name":401,"slug":402,"path":403,"count":404,"image":405},"Troubleshooting","troubleshooting","\u002Fblog\u002Fcategories\u002Ftroubleshooting",5,"\u002Fimages\u002Fblog\u002Fesp32-brownout-detector-was-triggered.jpg",{"name":382,"slug":383,"path":407,"count":408,"image":409},"\u002Fblog\u002Fcategories\u002Fguides",11,"\u002Fimages\u002Fblog\u002Fcoingecko-api-esp32-rate-limits.jpg",1795511563204]