An encoder element (1) with high spatial resolution comprising an information layer with optically readable information, wherein the information is in the form of successive pits (10) written in by a laser beam and wherein the pits possess a specific optical property that substantially differs from that of the surrounding surface of said information layer.