An on-line plasma shape reconstruction algorithm is necessary to design the plasma position and shape control system in modern tokamaks. An algorithm aimed at solving this problem is proposed. A description of the mathematical procedure is provided and experimental data incorporation is discussed. An example of an application of this algorithm is demonstrated using experimental data from Globus-M discharge #10292.