Leveraging ubiquitous moisture and abundant biomass in nature to convert chemical energy into electrical energy holds great promise for meeting energy demands. Herein, we report a simple, green, low-cost, and high-performance lignin-derived moisture-enabled electric generator (LMEG). An LMEG device with an area of 0.25 cm