This study evaluated the effect of free and nanoencapsulated rosemary essential oil (REO) as an antibiotic alternative in broiler diets on growth performance, nutrient digestibility, carcass traits, meat quality and gene expression. Four hundred twenty day-old commercial broiler chicks (VENCOBB) were randomly allocated to seven dietary treatments, each having four replicates of fifteen chicks. The dietary treatments comprised control (CON) fed a basal diet only, AB (basal diet + 10 mg enramycin/kg), CS (basal diet + 150 mg chitosan nanoparticles/kg), REOF100 and REOF200 (basal diet + 100 mg and 200 mg free REO/kg, respectively), and REON100 and REON200 (basal diet + 100 mg and 200 mg nanoencapsulated REO/kg, respectively). Overall (7-42 d), REON200 showed the highest (p < 0.001) body weight gain (1899 g/bird) and CON had the lowest gain (1742 g/bird), while the CS, REOF100 and REOF200 groups had a similar gain, but lower than that of the AB and REON100 groups. Feed intake was not affected by dietary treatments. Overall, the feed efficiency increased (p = 0.001) by 8.47% in the REON200 group and 6.21% in the AB and REON100 groups compared with the CON. Supplementation of REO improved (p < 0.05) dry matter and crude protein digestibility, with the highest values in REON100 and REON200. Ether extract, crude fiber, calcium and phosphorus digestibility values showed no difference among the groups. The dressing, breast, thigh % increased (p < 0.05) and abdominal fat % decreased (p < 0.001) more in the REON200 group than with other treatments and CON. In breast meat quality, water holding capacity and extract reserve volume increased (p < 0.05) while drip loss and cholesterol content decreased (p < 0.05) in REON100 and REON200. No change was observed in the breast meat color among dietary treatments and CON. The REON100 and REON200 groups had reduced (p < 0.05) meat lipid peroxidation as depicted by the decreased levels of TBARS, free fatty acids and peroxide value compared to other treatments and CON. The expression of the Mucin 2, PepT1 and IL-10 genes was upregulated (p < 0.001) and TNF-α downregulated (p < 0.001) by dietary addition of REO particularly in the nanoencapsulated form compared with the CON. In conclusion, nanoencapsulated REO, especially at 200 mg/kg diet, showed promising results as an antibiotic alternative in improving the performance, nutrient digestibility, carcass traits, meat quality and upregulation of growth and anti-inflammatory genes.