Carbides and Nitrides of transition metals are widely used due to their interesting properties. Several deposition methods and techniques can be used to produce carbide and nitride coatings. The choice of how to make the deposit depends on several parameters such as, the conditions of use of these deposits, the thickness to be produced, the adhesion between the substrate the deposit, and the cost. In this work, hard coatings of chromium carbide were produced by a conversion treatment on 100Cr6 and X200Cr12 steels. The conversion treatment consists of electrode position of chromium on the surface of 100Cr6 and X200Cr12 steels followed by diffusion annealing treatment at 1000 and 1100 °C for holding times of 1 and 2 hours. The obtained results show that, for all the conversion treatments carried out in this work, there was formation of chromium carbides layer on the surface of steel. However, it should be noted that the nature of the constituting phases of the formed layer depends on the temperature of the diffusion annealing treatment and the duration at this temperature. It should also be noted that the X-ray diffraction analysis has allowed us to show the existence of chromium oxide in addition to chromium carbides. The microhardness profile and the scratch test show that the X200Cr12 steel sample shows better results.These properties are usually obtained by expensive methods such as PVD, CVD, while we can obtain them by easy and inexpensive methods.