Electroosmosis is one of the most used actuation mechanisms for the microfluidics in the current active lab-on-chip devices. It is generated on the induced charged microchannel walls in contact with an electrolyte solution. Electrode distribution plays the key role on providing the external electric field for electroosmosis, and determines the performance of electroosmotic microfluidics. Therefore, this paper proposes a topology optimization approach for the electrodes of electroosmotic microfluidics, where the electrode layout on the microchannel wall can be determined to achieve designer desired microfluidic performance. This topology optimization is carried out by implementing the interpolation of electric insulation and electric potential on the specified walls of microchannels. To demonstrate the capability of this approach, one typical electroosmotic device, i.e., electroosmotic micropump, is modeled with several electrode layouts derived. And this approach permits potential applications in chemicals and biochemistry due to its outstanding capability on determining the performance of electrokinetic microfluidics.