Raster image formats represent images as a grid of pixels (Picture Elements), where each pixel has a color value. Examples include JPEG, TIFF, GIF, PNG, and BMP. Vector image formats, however, represent images using mathematical equations to define lines, curves, and shapes. They are resolution-independent and can be scaled without loss of quality. SVG (Scalable Vector Graphics) is a prominent example of a vector image format.