A photocoupler is an optical device that includes a light-emitting diode (LED) and a photodetector in one package. Though it is an optical device, it handles electrical signals, not light.
Unlike other optical devices, the light is not emitted outside the package.
The external appearance is similar to that of non-isolators/solid state relays, one channel with 2 inputs and 2 outputs.