A nonaqueous capillary electrophoresis (NACE) method, coupled with either UV or electrospray mass spectrometry (ESI-MS), is described for the simultaneous analysis of seven beta-blockers. The same electrolyte, namely 25 mM ammonium formate and 1 M formic acid, was used with different investigated organic solvents. In addition to frequently used organic solvents such as methanol (MeOH) and acetonitrile (MeCN), formamide and its derivatives were investigated. Formamide (FA) and N-methylformamide (NMF) present several interesting physico-chemical properties, one of them being a high dielectric constant (e). Since FA and NMF possess a high UV cutoff, beta-blockers with an absorbance above 250 nm were selected as model compounds in order to compare NACE-UV and NACE-MS performances. FA and NMF showed different selectivity compared to water, MeOH or MeCN, and also demonstrated a higher efficiency in terms of the number of theoretical plates (especially NMF). To overcome their unfavorable optical properties, hyphenation with MS detection appears as a promising technique, thanks to its benefits in terms of selectivity, sensitivity and universality. The practical compatibility of FA and NMF with ESI-MS detection in combination with a sheath liquid configuration was demonstrated. In comparison to UV detection, sensitivity was increased, while a high efficiency was maintained. In addition, the low and stable generated currents observed were evidences for the successful hyphenation with ESI-MS. Hence, FA and NMF seemed to be promising alternatives in NACE-ESI-MS, either used as pure organic solvent or as a mixture with MeOH or MeCN.