Most died after buying the black-market spirits, made from ethanol, water and fruit, from a couple in Sleman, north of Yogyakarta city. Several people were also taken to hospital.
The alleged maker and seller of the drink has been arrested.
It is not the first time moonshine has killed people in Muslim-majority Indonesia.
More than a dozen Indonesians died after drinking it at new year celebrations in 2014, and 25 people, four of them foreigners, died after drinking palm wine laced with methanol in Bali in 2009.