This picture shows Earth's radiation budget. Sunlight coming to Earth is on the left. Infrared radiation going away from Earth is on the right.
Image courtesy of K. Trenberth, J. Fasullo, and J. Kiehl.