An X-ray uses a small amount of radiation to create images of your bones and internal organs. X-rays are most often used to detect bone or joint problems, or to check the heart and lungs (chest X-ray).