Summary Electrostatic charges are easily generated on surfaces during contact electrification. Although these invisible charges have emerged as a new dimension in mediating the functions of surfaces, such as energy conversion, liquid transport, reactivity, and adsorbability, the accumulation of charges on surfaces can also pose many undesirable consequences. Despite notable progress, existing approaches in engineering antistatic surfaces suffer from limitations such as the need to modify bulk materials or for delicate control of patterning on surfaces that rely on the neutralization of generated charges. Herein, we report a general toolbox for designing antistatic coatings by leveraging on chemically heterogeneous components with electron-donating and electron-accepting functions, i.e., N-(2-aminoethyl)-3-aminopropyltrimethoxysilane and 1H,1H,2H,2H-perfluorooctyl trimethoxysilane, to molecularly engineer the surface potential to achieve an electrostatic homogeneity and completely prevent charge generation. Our approach is general, which allows the facile fabrication of antistatic coatings on various materials, even flexible and curved, with good re-writability and transparency.