In the extraction of alkali and alkaline earth cations by a crown ether into certain N-alkylpyridinium-based ILs, the balance between neutral complex/ion-pair partitioning and ion exchange is significantly altered by the formation of micelles in the aqueous phase involving the IL cation.