The development of a new generation of detectors has been key to the success of X-ray free-electron lasers (XFELs). Anna Bergamaschi, Aldo Mozzanica and Bernd Schmitt discuss the advances in detector technology made over the past 10 years and examine the challenges presented by emerging high-repetition-rate XFEL facilities.