John Frederick Peto (May 21, 1854 – November 23, 1907) was an American trompe l'oeil ("fool the eye") painter who was long forgotten until his paintings were rediscovered along with those of fellow trompe l'oeil artist William Harnett.
Although Peto and the slightly older Harnett knew each other and painted similar subjects, their careers followed different paths. Peto was born in Philadelphia, Pennsylvania, and studied at the Pennsylvania Academy of the Fine Arts at the same time as Harnett. Until he was in his mid-thirties, he submitted paintings regularly to the annual exhibitions at the Philadelphia Academy. In 1889, he moved to the resort town of Island Heights, New Jersey, where he worked in obscurity for the rest of his life. He and his wife took in seasonal boarders, he found work playing cornet at the town's camp revival meetings, and he supplemented his income by selling his paintings to tourists. He never had a gallery exhibition in his lifetime. Harnett, on the other hand, achieved success and had considerable influence on other artists painting in the trompe l'oeil genre, but even his paintings were given the snub by critics as mere novelty and trickery.
Both artists were masters of trompe l'oeil, a genre of still life that aims to deceive the viewer into mistaking painted objects for reality. Exploiting the fallibility of human perception, the trompe l'oeil painter depicts objects in accordance with a set of rules unique to the genre. For example, Peto and Harnett both represented the objects in their paintings at their actual size, and the objects rarely were cut off by the edge of the painting, as this would allow a visual cue to the viewer that the depiction was not real. But the main technical device was to arrange the subject matter in a shallow space, using the shadow of the objects to suggest depth without the eye seeing actual depth. Thus the term trompe l'oeil—"fool the eye". Both artists enthrall the viewer with a disturbing but pleasant sense of confusion.