Herein, we report a convenient solvent-controlled regioselective esterification to access two types of carboxylate esters without any additive or non-green activation strategy. In this transformation, 2-methyleneaziridines served as an ester reagent, providing two alternative electrophilic carbon centers. Notably, this protocol is suitable for some structure-complicated clinical molecules with a carboxylic acid group, presenting remarkable application potential.