CT scans utilize X-rays to form images of organs and tissues inside the body (for example, abdominal organs, brain, chest, lungs, heart) while endoscopy is a procedure that can visualize only the inside surface of the upper gastrointestinal tract.