An imaging method combining soft-landing electrospray ion beam deposition and low-temperature scanning tunnelling microscopy resolves the structures of glycans at sub-nanometre resolution, revealing the connectivity of glycan chains and the types of linkages.