A Brooklyn cop has been busted for buying groceries with a credit card that was being held as evidence in a case, authorities said yesterday.

Sgt. John Kopec, an 18-year veteran assigned to the Brooklyn Courts section, was caught on videotape spending $201.08 last May in three trips to a Bayonne, N.J., A&P, prosecutors say.

Kopec also tried to use the card to buy $159.87 worth of groceries from a Brooklyn Key Food, and gasoline from a Brooklyn Mobil station, authorities said. The attempted purchases were denied because the card’s limit had been exceeded.

Kopec, 40, was charged Tuesday with grand larceny, possession of stolen property and petit larceny, authorities said. He was released without bail following his arraignment.