A new optical profilometry linearly coded profilometry is presented. It uses a periodic linear structure illuminating light to code the surface and the phase shifting technique to decode the phase. The principle of linearly coded profilometry is discussed in detail and the reliability is verified by the experiment results.