Whale sharks are filter feeders whose diet consists mainly of plankton, including copepods, shrimp, krill, jellyfish, squid, small fish, and anchovies. They swim with their mouths open, engulfing large volumes of water and filtering out food through specialized structures in their gills.