31 teams were drawn into 5 groups of 5 teams and one more group of 6 teams. The first 2 teams in each group and the 4 best third place teams qualified for EuroBasket 2013. The games were played between 15 August and 11 September 2012.