Accurate assessment of corneal curvatures using frequency domain optical coherence tomography (OCT) with galvanometer scanners remains challenging due to the well-known scan field distortion. This paper presents an algorithm and software for correcting the distortion using only two simple measurements in which a readily available standard sphere is positioned in different depths in front of the OCT scanner. This offers a highly accessible and easily reproducible method for the field distortion correction (FDC). The correction was validated by measuring different spherical phantoms and conducting corneal curvature measurements of ex vivo porcine corneas using a commercial spectral-domain OCT system and a clinically approved swept-source OCT as a reference instrument. Thus, the error in radius measurements of spherical phantoms was reduced by >90 % and astigmatism by >80 % using FDC. In explanted porcine eyes, the error in astigmatism measurements with the Telesto was reduced by 75% for power and 70% for angle. The best fitting sphere radius was determined up to a deviation of 0.4% from the Anterion. This paper describes a correction algorithm for OCT immanent distortion that is applicable to any scanning OCT setup and enables precise corneal curvature measurements. The MATLAB software for the FDC is publicly available on GitHub.