The scarcity of fuels, high pollution levels, climate change, and other major environmental issues are critical challenges that modern societies are facing, mostly originating from fossil fuels-based economies. These challenges can be addressed by developing green, eco-friendly, inexpensive energy sources and energy storage devices. Electrochemical energy storage materials possess high capacitance and superior power density. To engineer highly efficient next-generation electrochemical energy storage devices, the mechanisms of electrochemical reactions and redox behavior must be probed in operational environments. They can be studied by investigating atomic and electronic structures using in situ x-ray absorption spectroscopy (XAS) analysis. Such a technique has attracted substantial research and development interest in the field of energy science for over a decade. The mechanisms of charge/discharge, carrier transport, and ion intercalation/deintercalation can be elucidated. Supercapacitors generally store energy by two specific mechanisms—pseudocapacitance and electrochemical double-layer capacitance. In situ XAS is a powerful tool for probing and understanding these mechanisms. In this Review, both soft and hard x rays are used for the in situ XAS analysis of various representative electrochemical energy storage systems. This Review also showcases some of the highly efficient energy and power density candidates. Furthermore, the importance of synchrotron-based x-ray spectroscopy characterization techniques is enlightened. The impact of the electronic structure, local atomic structure, and electronically active elements/sites of the typical electrochemical energy storage candidates in operational conditions is elucidated. Regarding electrochemical energy storage mechanisms in their respective working environments, the unknown valence states and reversible/irreversible nature of elements, local hybridization, delocalized d-electrons spin states, participation of coordination shells, disorder, and faradaic/non-faradaic behavior are thoroughly discussed. Finally, the future direction of in situ XAS analysis combined with spatial chemical mapping from operando scanning transmission x-ray microscopy and other emerging characterization techniques is presented and discussed.