A Bebe store in New York.

Amid speculation that will shutter all of its shops to become an online-only retailer, the specialty women's apparel chain says it has committed to closing 21 locations. That represents some 12 percent of its outlets.

In a filing with the Securities and Exchange commission on Wednesday, Bebe said it will incur an impairment charge of approximately $2 million from the closures. It will pay a termination fee of roughly $7.4 million.