A respiratory mask connector and a respiratory mask. The respiratory mask connector is configured to connect a frame to a connection pipe. The respiratory mask connector has a connection face and a spherical face, the connection face being configured to be connected to the frame, and the spherical face being configured to be in ball-socket connection with a pipe head of the connection pipe. The connection face and the spherical face are respectively configured as either the outer wall surface of the respiratory mask connector or the inner wall surface of the respiratory mask connector. The respiratory mask connector can be used for a respiratory mask.