We present 2-, 3-, and 6-way optical demultiplexer and optical filters based on coupled waveguide and photonic crystal cavities. Demultiplexers with 3 nm channel separation and optical splitters with different transmission efficiencies are presented. The structures designed on GaAs wafers having the smallest footprint of 78 μm2, are suitable for integrating all-optical devices for planar integrated circuits.