The search for new efficient thermoelectric devices converting waste heat into electrical energy is of major importance. The physics of mesoscopic electronic transport offers the possibility to develop a new generation of nanoengines with high efficiency. Here we describe an all-electrical heat engine harvesting and converting dissipated power into an electrical current. Two capacitively coupled mesoscopic conductors realized in a two-dimensional conductor form the hot source and the cold converter of our device. In the former, controlled Joule heating generated by a voltage-biased quantum point contact results in thermal voltage fluctuations. By capacitive coupling the latter creates electric potential fluctuations in a cold chaotic cavity connected to external leads by two quantum point contacts. For unequal quantum point contact transmissions, a net electrical current is observed proportional to the heat produced.