An optical scanner having a micro-optical element for combining two light beams is disclosed. The optical scanner has a micro-optical element including two parts, which serves to combine two light beams emitted, by two beam sources on a photodetector. The first part of the micro-optical element influences the first light beam and the second part of the micro-optical element influences the second light beam.