The invention provides a sample transfer device and a sample transfer method for an ultrahigh vacuum
magnetic force microscope. The sample transfer device comprises a working box body, a transition box body, a sample feeding
assembly, a sample transfer
assembly, a sample storage
assembly and a switch structure. The working box body can be vacuumized to a set vacuum degree, a test position, a transfer position and a
temporary storage position are arranged in the working box body, the test position is used for placing a sample support and a needle point support, the transfer position is used for taking and placing the sample support and the needle point support on the sample conveying assembly and the sample storage assembly by the sample transferring assembly, and the
temporary storage position is used for temporarily storing the sample support and the needle point support. Compared with the operation of frequently opening the working box body in the prior art, the vacuum degree of the working box body is not influenced in the whole working process, the established ultrahigh vacuum environment is not damaged, the whole operation process is simple and rapid, and the sample conveying is convenient. Different sample supports or needle point supports can be replaced at the
testing position in the working box body, the working box body does not need to be opened, and the stability of the vacuum degree of the working box body in the sample transferring process is guaranteed.