A compact electrostatic coalescer which enables the online separation of water from crude oils has been developed. Fundamentals of the coalescence process as functions of various parameters such as excitation frequency, voltage, oil flow rate, etc are studied.