Level structure of the Λ12C hypernucleus was precisely determined by means of γ-ray spectroscopy. We identified four γ-ray transitions via the 12C(π+,K+γ) reaction using a germanium detector array, Hyperball2. The spacing of the ground-state doublet (21−,11−) was measured to be 161.5±0.3(stat)±0.3(syst)\,keV from the direct M1 transition. Excitation energies of the 12− and 13− states were measured to be 2832±3±4\,keV and 6050±8±7\,keV, respectively. The obtained level energies provide definitive references for the reaction spectroscopy of Λ hypernuclei.