Khansar (also Romanized as Khvansar, Khunsar) is a 900km² mountainous county, situated in a green valley, about 2300 meters above sea level, in Isfahan Province, Iran. It includes 18 villages in 3 rural districts and one central city; Khansar. The county has a population of about 32,000 inhabitants. Hacham Uriel Davidi (1922–2006) and national football player Ali Shojaei are notable Khansaris.
Khun means spring and sar means place in Avestan language, so khansar means place of the spring. The languages spoken in the city are Khunsari (Khwanshari), a northwestern Iranian language, and Judeo-Khunsari, a Judæo-Persian language spoken in Khansar and elsewhere in the far-western Isfahan Province.
The city of Khansar is situated on both sides of a narrow valley through which the Khunsar River flows. The town and its gardens and orchards straggle some 10 km along the valley. Khansar is famous for its honey, flower-filled gardens and a great profusion of fruit.
The principal centers of Gazz Angebin production in Iran are the mountainous pasture-lands of this region. Gazz Angebin, indirectly extracted by an insect from a plant, is one of the main ingredients of Gazz (Iranian Nougat). Khansar has also famous hand-woven rugs called Weis in polygonal shapes.