Smooth titanium oxide nitride coatings have been deposited on carbon fibres using a non-oxide sol–gel method based on self-condensation of titanium alkylamide species. Flexible supercapacitors made from the fibres had competitive energy and power densities.