Cops nabbed a man who allegedly snuck out of a Staten Island comic book store with 12 books hidden under his clothes Wednesday afternoon.

Nicholas Perciballi, 22, walked out of JHU Comic Books on New Dorp Lane with the books — worth a total of $107 — under his pants and sweater, cops said.

Police searched the area and found the thief, in possession of the books as well as four glassine envelopes of heroin, at the corner of Edison Street and New Dorp Lane at about 12:40 p.m. A store employee was able to positively identify him, and cops arrested him.

Perciballi was charged with petit larceny, criminal possession of stolen property and criminal possession of a controlled substance, cops said.

He has five prior arrests, all for drug possession, according to authorities. The most recent was on Oct. 30.