Butterflies have two compound eyes located on their heads. Although they have spots on their wings that resemble eyes, those are just markings and have nothing to do with a butterfly's eyesight.
Although butterflies have eyes, those eyes do not see as clearly as a human's. However, they do have features that people's eyes do not have. Each of a butterfly's compound eyes is composed of many ommatidia, all looking in a different direction and each one with its own lens. These structures allow the butterfly to see things in many directions simultaneously. The butterfly's brain collects the data from the various structures and forms a whole picture from all the different parts. Butterflies can also see ultraviolet light.