Aim: One of the main diagnostic problems of conventional polymerase chain reaction (PCR) is indiscrimination of low parasitic loads in soil samples. The aim of this study is to determine the genetic diversity and identification of Toxocara spp. from public areas soil inferred by loop-mediated isothermal amplification (LAMP) assay. Materials and Methods: A total of 180 soil samples were collected from various streets and public parks of northwest Iran. The DNA of recovered Toxocara eggs were extracted and amplified by PCR and LAMP following ZnS[O.sub.4] flotation technique. The amplicons of internal transcribed spacer-2 gene were sequenced to reveal the heterogeneity traits of Toxocara spp. In addition, Toxocara canis sequences of southwest Iran were directly retrieved to compare gene flow between two distinct populations. Results: Toxocara spp. eggs were found in 57, 14 and 77 of soil samples using the microscopy, PCR and LAMP (detection limit 1-3 eggs/200 g soil), respectively. 7.7% of isolates were identified as T. canis by PCR method, while LAMP was able to detect 27.2%, 15.5% and 12.2% as Toxocara cati, T. canis and mixed infections, respectively. The kappa coefficient between LAMP and microscopy indicated a strong agreement (0.765) but indicated a faint agreement among LAMP-PCR (0.203) and PCR-microscopy (0.308) methods. A pairwise fixation index (Fst) as a degree of gene flow was generally low (0.02156) among Toxocara populations of northwest and southwest Iran. Conclusions: The statistically significant Fst value indicates that the T. canis populations are not genetically well differentiated between northwest and southwest Iran. This shows that here is possibly an epidemiological drift due to the transfer of alleles. The LAMP assay because of its shorter reaction time, more sensitivity, and simultaneous detection of environmental contamination to be appears as valuable field diagnosis compared to PCR. Therefore, the detection of low Toxocara spp. loads from public area soils will help to expand epidemiological understanding of toxocariasis and establishing preventive strategies in resource-limited endemic of Iran. Keywords: gene flow, Iran, loop-mediated isothermal amplification, polymerase chain reaction, soil, Toxocara spp.