A criminal network made over $12 million stealing flash drives, headphones, ink cartridges and flea collars from big-box stores and selling them on websites like Amazon and eBay, according to an indictment on Wednesday.

Twelve people were indicted on 41 counts including conspiracy, enterprise corruption, money laundering and criminal possession of stolen property, in one of the most sprawling retail crime operations ever investigated.

“The ring, we allege, consisted of four theft crews that operated all across the country stealing valuable merchandise from major retailers like Staples, Office Depot and Best Buy,” Eric T. Schneiderman, the attorney general of New York, said at a news conference in Manhattan on Wednesday.

“This is not shoplifting,” he added. “This is organized crime.”

This week, investigators said they seized more than $1 million in stolen goods and over $7.7 million from the defendants, some of whom could face sentences of up to 25 years.