In this work, an ampholine‐functionalized hybrid organic–inorganic silica sorbent was successfully used to extract melamine from a milk formula sample by a hydrophilic interaction solid‐phase extraction protocol. Primary factors affecting the extraction efficiency of the material such as extraction solvent, elution solvent, sample loading volume, and elution volume have been thoroughly optimized. Under the optimized hydrophilic solid‐phase extraction conditions, the recoveries of melamine spiked in milk formula samples ranged from 86.2 to 101.8% with relative standard deviations of 4.1–9.4% (n = 3). The limit of detection (S/N = 3) was 0.32 μg/g. The adsorption capacity toward melamine was 30 μg of melamine per grams of sorbent. Due to its simplicity, rapidity and cost effectiveness, the newly developed hydrophilic solid‐phase extraction method should provide a promising tool for daily monitoring of doped melamine in milk formula.