Renewable technologies, and in particular the electric vehicle revolution, have generated tremendous pressure for the improvement of lithium ion battery performance. To meet the increasingly high market demand, challenges include improving the energy density, extending cycle life and enhancing safety. In order to address these issues, a deep understanding of both the physical and chemical changes of battery materials under working conditions is crucial for linking degradation processes to their origins in material properties and their electrochemical signatures. In situ and operando synchrotron-based X-ray techniques provide powerful tools for battery materials research, allowing a deep understanding of structural evolution, redox processes and transport properties during cycling. In this review, in situ synchrotron-based X-ray diffraction methods are discussed in detail with an emphasis on recent advancements in improving the spatial and temporal resolution. The experimental approaches reviewed here include cell designs and materials, as well as beamline experimental setup details. Finally, future challenges and opportunities for battery technologies are discussed.