Two-dimensional titanium carbide has been produced by etching out aluminium in a lithium fluoride and hydrochloric acid mixture; it is hydrophilic and mouldable like clay and has excellent volumetric capacitance and cyclability, properties that are desirable for portable electronics. A class of electrochemically active two-dimensional materials known as 'MXenes' has recently shown potential for energy-storage applications. Michael Ghidiu et al. now report a new method for producing these materials that has the advantage of using safer processing conditions.This yields a water-swelling material that can be shaped like clay to produce electrodes with volumetric capacitances that are significantly improved over their predecessors. Safe and powerful energy storage devices are becoming increasingly important. Charging times of seconds to minutes, with power densities exceeding those of batteries, can in principle be provided by electrochemical capacitors—in particular, pseudocapacitors1,2. Recent research has focused mainly on improving the gravimetric performance of the electrodes of such systems, but for portable electronics and vehicles volume is at a premium3. The best volumetric capacitances of carbon-based electrodes are around 300 farads per cubic centimetre4,5; hydrated ruthenium oxide can reach capacitances of 1,000 to 1,500 farads per cubic centimetre with great cyclability, but only in thin films6. Recently, electrodes made of two-dimensional titanium carbide (Ti3C2, a member of the ‘MXene’ family), produced by etching aluminium from titanium aluminium carbide (Ti3AlC2, a ‘MAX’ phase) in concentrated hydrofluoric acid, have been shown to have volumetric capacitances of over 300 farads per cubic centimetre7,8. Here we report a method of producing this material using a solution of lithium fluoride and hydrochloric acid. The resulting hydrophilic material swells in volume when hydrated, and can be shaped like clay and dried into a highly conductive solid or rolled into films tens of micrometres thick. Additive-free films of this titanium carbide ‘clay’ have volumetric capacitances of up to 900 farads per cubic centimetre, with excellent cyclability and rate performances. This capacitance is almost twice that of our previous report8, and our synthetic method also offers a much faster route to film production as well as the avoidance of handling hazardous concentrated hydrofluoric acid.