If you look into the body of an LED, you will see an "anvil" like structure attached to one pin. This will be the cathode. The other pin is the anode. The cathode is often marked with a "flat" on the package, and the anode's lead is sometimes longer.