A nanocomposite consisting of platinum particles, polyaniline and Ti3C2 MXene (Pt/PANI/MXene) was used to modify a screen-printed carbon electrode (SPCE) to obtain sensors for hydrogen peroxide and lactate. This nanocomposite was characterized by scanning electron microscopy (SEM), energy dispersive X-ray spectroscopy (EDX), transmission electron microscopy (TEM) and X-ray powder diffraction (XRD) to determine the physical morphologies and the nanocomposite elements. The modified electrode exhibited the improved current response towards hydrogen peroxide (H2O2) compared with an unmodified electrode and provided a low detection limit of 1.0 μM. When lactate oxidase was immobilized on the modified electrode, the electrode responded to lactate via the H2O2 generated in the enzymatic reaction. The lactate assay was performed by amperometry at a constant potential of +0.3 V (vs. Ag/AgCl). The linear range was found to be from 0.005 to 5.0 mM with a detection limit of 5.0 μM for lactate. Ultimately, this biosensor was used for the determination of lactate in milk samples with high stability and reliability. Graphical abstractSchematic representation of a novel platinum particles/polyaniline/MXene nanocomposite (Pt/PANI/MXene) for screen-printed carbon electrode (SPCE) modification to enhance the specific surface area for immobilization of lactate oxidase (LOx) and use as enzymatic biosensor for lactate determination in milk sample.