Background Entomopathogenic fungi exists naturally in plants as an asymptote and have the potential to reduce the population of insect pests through indirect interactions. This study was conducted to detect and characterize the endophytic fungi Beauveria bassiana and Metarhizium robertsii from the rhizosphere soil of tomato plants and their virulence effect on Galleria melonella. Methods From the rhizosphere soil of 40 tomato fields, three Beauveria bassiana and seven Metarhizium robertsii isolates were isolated using the galleria bait method. All fungi isolate were morphologically characterized by their colony color, shape, and surface texture. Isolates with the highest percentages of germination, conidial yield, and radial growth were selected, and their virulence was evaluated on second instar larvae of Galleria melonella under laboratory conditions. Results In this study, Beauveria bassiana showed white colony color and aseptate hyphae, whereas Metarhizium robertsii showed dark green to light green colony color and septate hyphal structures. Maximum spore production and conidial length were obtained by Beauveria bassiana isolate APPRC-27 with 2.67x107 spores ml-1 and 3.24 µm, respectively. Colony radial growth rates ranged from 1.73 to 3.24 mm day-1. The results revealed that the highest mortality rate of Galleria melonella (100%) was obtained by Metarhizium robertsii isolates K-61 and K-102 at a concentration of 1x108 conidial ml-1 at 7 days post-inoculation. The lowest mortality rate was registered by Metarhizium robertsii isolate RST-11. Conclusions In the present study, isolates that produced the most spores and had the highest germination rates were the most virulent to Galleria mellonella second instar larvae. Therefore, virulent entomopathogenic fungi, Beauveria bassiana and Metarhizium robertsii, are promising bioagents for the control of insect pests.