Both Earth and Mars possess different styles of explosive basaltic volcanism. Distinguishing phreatomagmatic eruptions, driven by magma-water interaction, from 'magmatic' explosive eruptions (that is, strombolian and plinian eruptions) is important for determining the presence of near-surface water or ice at the time of volcanism. Here we show that eruption styles can be broadly identified by relative variations in groundmass or bulk crystallinity determined by X-ray diffraction. Terrestrial analogue results indicate that rapidly quenched phreatomagmatic ejecta display lower groundmass crystallinity (o35%) than slower cooling ejecta from strombolian or plinian eruptions (440%). Numerical modelling suggests Martian plinian eruptive plumes moderate cooling, allowing 20-30% syn-eruptive crystallization, and thus reduce the distinction between eruption styles on Mars. Analysis of Mars Curiosity rover CheMin X-ray diffraction results from Gale crater indicate that the crystallinity of Martian sediment (52-54%) is similar to pyroclastic rocks from Gusev crater, Mars, and consistent with widespread distribution of basaltic strombolian or plinian volcanic ejecta.