The invention discloses a method for preparing contact lenses with a two-dimension code. The method comprises the following steps: 1) preparing raw materials, namely, A, mixing hydrogel, an emulsion stabilizer and a monomethyl fumarate sodium salt in parts by weight, heating, and treating with infrared rays and microwaves alternatively twice, thereby obtaining a first mixture; B, mixing silicone hydrogel with glycerinum in parts by weight, thereby obtaining a second mixture; C, mixing the first mixture and the second mixture, thereby obtaining a third mixture; D, mixing the third mixture, nano-silver granules and nano ferric hydroxide granules, feeding into water, and treating in ultrasonic waves, thereby obtaining a fourth mixture; 2) molding. By adopting the contact lenses prepared by using the method disclosed by the invention, eyes can be prevented from abrasion caused by a two-dimension code graph when people wear the contact lenses with the two-dimension code, and wearing comfort can be further improved; moreover, due to the two-dimension code added on the contact lenses, the contact lenses can be widely used in fields such as a recognition system, a security protection system or an anti-theft system, and the like.