In this research, the optimum conditions for the synthesis of activated carbon from biodiesel wastes such as palm shells (PS) and Jatropha curcas fruit shells (JS) by chemical activation method using potassium hydroxide (KOH) as an activating agent under nitrogen atmosphere were investigated. The effects of soaking in hydrofluoric acid (HF), impregnation ratio, activation temperature and activation time on adsorption capacity of methylene blue (MB) and iodine (I2) solution were examined. The results showed that HF-treated activated carbons exhibited higher adsorption capacities by eliminating ash residues, which might fill up the pores. In addition, the adsorption capacities of methylene blue and iodine solution were also significantly influenced by the types of raw materials, the activation temperature and the activation time. The highest adsorption capacity of methylene blue 257.07mg/g and iodine 847.58mg/g were obtained from Jatropha curcas wastes.