A measurement of the Ξcc++ mass is performed using data collected by the LHCb experiment between 2016 and 2018 in pp collisions at a centre-of-mass energy of 13 TeV, corresponding to an integrated luminosity of 5.6 fb−1. The Ξcc++ candidates are reconstructed via the decay modes Ξcc++→Λc+K−π+π+ and Ξcc++→Ξc+π+. The result, 3621.55 ± 0.23 (stat) ± 0.30 (syst) MeV/c2, is the most precise measurement of the Ξcc++ mass to date. [Figure not available: see fulltext.].