The embodiment of the invention provides a display panel and a display device. The display panel comprises a display area, wherein the display area comprises a first display area, a transition area and a second display area, wherein the sub-pixel density of the first display area, the transition area and the second display area is gradually increased. The first display area comprises a plurality of first sub-pixels, and a first pixel circuit for driving the first sub-pixels is located in the transition area, so that the light transmission area of the first display area is increased. The firstsub-pixels are electrically connected with the first pixel circuit through a connecting line. Each of a first line segment, a second line segment and a third line segment belongs to a different connecting line, and the first line segment, the second line segment and the third line segment all extend in a first direction and are sequentially arranged in a second direction. There is no gap between the first line segment and the second line segment arranged in sequence, and there is no gap between the second line segment and the third line segment arranged in sequence, so that the light transmittance of the first display area can be improved, the diffraction phenomenon when the light ray penetrates through the first display area is improved, and the optical performance of an under-screen optical device is improved.