Haemonchus contortus is one of the major gastrointestinal nematodes responsible for significant economic and production losses of sheep. Diseases caused by this species lack effective anthelmintic products, and the search for new compounds to replace synthetic anthelmintics has been extensive. The present investigation assesses the in vitro activity of the essential oil of melaleuca (Melaleuca alternifolia), both free (TTO) and nanostructured (nanoTTO), and terpinen-4-ol (terp-4-ol) on eggs and larvae of H. contortus. Tests of egg hatching (EHT) and inhibition of larval migration (LMIT) were used to assess the in vitro efficacy of TTO, nanoTTO and terp-4-ol. Using EHT, at a concentration of 3.5 mg/ml, 100% inhibition occurred using TTO and terp-4-ol, with LC50 values of 0.43 and 0.63 mg/ml, and LC90 values of 1.75 mg/ml and 3.12 mg/ml, respectively. NanoTTO had lower activity, with 82.6% inhibition at the same concentration. Using LMIT, TTO and nanoTTO had a similar activity with 88.0% and 84.8% inhibition, respectively, at a concentration of 56 mg/ml. Terp-4-ol had a greater effect on larvae, with 85.7% inhibition at a concentration of 56 mg/ml and 82.4% at 3.5 mg/ml, demonstrating high activity at the lowest concentration tested. Therefore, the results indicate that all substances tested showed ovicidal and larvicidal activity against H. contortus. TTO, terp-4-ol and, mainly, nanoTTO may be targeted in in vivo studies, besides being a promising line of research into the control and treatment of veterinary important helminths.