X-rays are quick, painless tests that produce images of structures inside your body including bones and some organs. They are often used to look for skeletal problems like fractures or dislocated joints. They can also help your doctor identify the source of pain or diagnose an illness or disease.