This study demonstrates the application of laser‐induced breakdown spectroscopy (LIBS) and hyperspectral imaging to the investigation of coprolite and fossil samples. Solid samples from the Permian (seven coprolites and one fossil), Cretaceous (one coprolite) and Oligo‐Miocene (two coprolites) periods were directly analysed, and emission spectra from 186 to 1042 nm were obtained in several areas covering coprolite/fossil and rock material. Initial exploratory analyses were performed using principal component analysis with the data set normalised by the norm (Euclidean norm = 1). After identification and selection of emission lines of eleven elements (Al, Ca, Cr, Fe, K, Mg, Mn, Na, Ni, P and Si), the signals were normalised again by the relative intensity of the selected element. Phosphorus was identified mainly in the coprolites, while K and Na were primarily found in the rock material. In several cases, there was a positive correlation between Ca and P. A sample from the Oligo‐Miocene series was also analysed using inductively coupled plasma‐optical emission spectrometry (ICP‐OES) (rock and coprolites were analysed separately). Based on the quantitative results from ICP‐OES, it was confirmed that the tendency was the same as that observed with the results obtained from LIBS directly in the solid sample.