Another 46 people, who were injured, are being treated at local hospitals.
The factory, run by PT Panca Buana Cahaya Sukses, had operated for only six weeks, district chief Toni Rustoni said.
Police say the death toll could rise further as numerous dozens of injured have extensive burns.
Parts of the building collapsed after being gutted by the blaze which scorched nearby cars. Witnesses reported hearing blasts erupt from the site.
First lawsuit filed against Weinstein Company
I was in disbelief and disgusted. "I haven't ever seen these kinds of ramifications for this egregious behavior", she added. She claims that Weinstein, however, persisted and performed oral sex on her and then masturbated in front of her.
"I saw people including women were jumping from above, oh my God", he added.
The fire has been brought under control. "Most of [those found dead] were piled up in the back, because it seemed they were trying to avoid the fire at the front".
Quoting a local official, MetroTV said that while the factory had a permit, its closeness to a residential neighbourhood was against regulations. "We are going to search whether there are any victims that need immediate treatment at hospitals".
It is not yet known what prompted the explosions.
After Sherin Mathews' death, adoption centers in Bihar under police scanner
The body was found about one kilometre from the house of her adoptive parents, Wesley and Sini Mathews. The affidavit does not say whether Mathews told police he administered any medical aid to the child.
Deadly fires are not uncommon in Indonesia due to poor safety standards that are routinely flouted.
Authorities say the factory had been in operation for about two months.
Seventeen people killed when a fire ripped through a karaoke bar on Sulawesi island in 2015.
Prescription Drug Take Back Day is Saturday
Overall, in its 13 previous Take Back events, the DEA and its partners have taken in over 8.1 million pounds of pills. Cuyahoga County now has more than 40 Rx Drug Drop Boxes located at law enforcement agencies.