The present invention is a sperm collector with squeezing function. It includes a soft rubber body provided with a penis insertion passage and a container body provided with at least a top end cover and receives the soft rubber body. When the top end cover and the container body are engaged, the soft rubber body is confined within a cavity formed by the top end cover and the container body. When the top end cover is disengaged, a front end portion of the soft rubber body protrudes out of an opening of the container body. A pressing means is provided at a middle lower portion of the container body. When using the present invention, the user could press the pressing means to squeeze the penis insertion passage of the sperm collector. Accordingly, stimulation to penis is increased and better effect of sperm collection is achieved. In particular, since the present invention is also provided with a heating rod, lubricant pockets and electrical vibrators, which enable the user to reach a climax as quick as possible, thereby further enhancing the effect of sperm collection.