This ion generator is provided with: an outer case (31) in which a substrate (51) is contained a needle-like discharge electrode (42) that extends from a surface (51a) of the substrate (51) to the outside of the outer case (31) and generates ions by discharge and an electrode protective wall (61) for protecting the discharge electrode (42) at the outside of the outer case (31). The electrode protective wall (61) comprises a wall part (66) and a wall part (67) which are provided so as to protrude beyond the front end portion of the discharge electrode (42) from the outer case (31), and which are on both sides of the discharge electrode (42) so as to face each other at a distance. The outer case (31) is provided with an opening (71) which is arranged between the wall part (66) and the wall part (67), and through which the substrate (51) is exposed. The distance between the wall part (66) and the wall part (67) is larger at the base portion side than at the front end portion side of the wall part (66) and the wall part (67), which protrude from the outer case (31). Due to this configuration, there can be provided an ion generator which enables easy cleaning of a discharge electrode, while preventing a user from touching the front end portion of the discharge electrode. Also provided is an air conditioner.Linvention concerne un générateur dions qui comprend : un boîtier externe (31) qui contient un substrat (51) une électrode de décharge (42) semblable à une aiguille qui sétend depuis une surface (51a) du substrat (51) vers lextérieur du boîtier externe (31) et génère des ions par décharge et une paroi de protection délectrode (61) destinée à protéger lélectrode de décharge (42) à lextérieur du boîtier externe (31). La paroi de protection délectrode (61) comprend une partie de paroi (66) et une partie de paroi (67) qui sont agencées de sorte à faire saillie au-delà de la partie dextrémité avant de lélectrode de décharge (42) depuis le boîtier externe (31) et qui se tr