Alkali metals are widely studied in various fields such as medicine and battery. However, limited by the chemical reactivity and electron/ion beam sensitivity, the intrinsic atomic structure of alkali metals and its fundamental properties are difficult to be revealed. Here, a simple and versatile method is proposed to form the alkali metals in situ inside the transmission electron microscope. Taking alkali salts as the starting materials and electron beam as the trigger, alkali metals can be obtained directly. With this method, atomic resolution imaging of lithium and sodium metal is achieved at room temperature, and the growth of alkali metals is visualized at atomic-scale with millisecond temporal resolution. Furthermore, our observations unravel the ambiguities in lithium metal growth on garnet-type solid electrolytes for lithium-metal batteries. Finally, our method enables a direct study of physical contact property of lithium metal as well as its surface passivation oxide layer, which may contribute to better understanding of lithium dendrite and solid electrolyte interphase issues in lithium ion batteries.