Kozarac is a settlement and small town in the City of Prijedor, in north-western Bosnia and Herzegovina. It is located in the Bosanska Krajina region, near the south-western slopes of Kozara mountain and east of the urban centre of Prijedor. Administratively, Kozarac belongs to the Republika Srpska entity of Bosnia and Herzegovina. According to the 2013 census data published on the Bosnia and Herzegovina census portal, Kozarac had 4,397 inhabitants.