A solid-phase permethylation procedure is described. For example, solid-phase permethylation can be utilized to prepare permethylated linear and branched, neutral and sialylated oligosaccharides, which can be analyzed by MALDI-MS.