The optimization of adjustable factors in electrospray ionization (ESI) by design of experiments (DoE) is presented. This approach allows a comprehensive and systematic optimization of all relevant factors for the ionization of compounds and increases the understanding about factor influences on the ionization efficiency.