The embodiment of the invention provides a display panel and a display device. The display panel comprises a display area, the display area comprises a first display area, a transition area and a second display area, and the sub-pixel density of the first display area, the sub-pixel density of the transition area and the sub-pixel density of the second display area are gradually increased. The first display area comprises a plurality of first sub-pixels, and the first pixel circuit for driving the first sub-pixels is located in the transition area, so that the light-transmitting area of the first display area is increased. The first sub-pixel is electrically connected with the first pixel circuit through a connecting line. The first line segment, the second line segment and the third line segment belong to different connecting lines, and the first line segment, the second line segment and the third line segment extend in the first direction and are sequentially arranged in the second direction. No gap exists between the first line segment and the second line segment and between the second line segment and the third line segment which are arranged in sequence, the light transmittance of the first display area can be improved, meanwhile, the diffraction phenomenon when light penetrates through the first display area is improved, and the optical performance of the under-screen optical device is improved.