A device for collecting a liquid sample by capillarity includes distinct first and second elements having respective male and female parts. The male part comprises a channel having a transverse section. The female part comprises a peripheral wall that transversely delimits a cavity to house the male part. A part of the peripheral wall forms a cap to close the transverse section when the female part houses the male part.