Although carboxylated cellulose nanofibres (C-CNFs) hold promise for numerous applications, current production methods are associated with environmental concerns. A type of deep eutectic solvent, comprising citric acid, choline chloride and water, has now been developed for the sustainable and scalable production of ultrafine and long C-CNFs.