iSpectra is an open source and system-independent toolbox for the analysis of spectral images (SIs) recorded on energy-dispersive spectroscopy (EDS) systems attached to scanning electron microscopes (SEMs). The aim of iSpectra is to assign pixels with similar spectral content to phases, accompanied by cumulative phase spectra with superior counting statistics for quantification. Pixel-to-phase assignment starts with a threshold-based pre-sorting of spectra to create groups of pixels with identical elemental budgets, similar to a method described by van Hoek (2014). Subsequent merging of groups and re-assignments of pixels using elemental or principle component histogram plots enables the user to generate chemically and texturally plausible phase maps. A variety of standard image processing algorithms can be applied to groups of pixels to optimize pixel-to-phase assignments, such as morphology operations to account for overlapping excitation volumes over pixels located at phase boundaries. iSpectra supports batch processing and allows pixel-to-phase assignments to be applied to an unlimited amount of SIs, thus enabling phase mapping of large area samples like petrographic thin sections.