An infrared heater works by emitting a form of electromagnetic radiation, similar to visible light but with longer wavelengths, primarily heating objects and people directly within their line of sight.