Red pitaya, one of Indonesia's most abundantly produced horticultural products, offers a sustainable solution for reducing waste by utilizing its peel in the production of an edible film. This research aimed to develop an edible film from red pitaya peel (RPP) flour and Kappa carrageenan (Carr) with the optimal physical and mechanical properties. Konjac (K) was added to improve the brittleness and compactness of the film specimens. This study employed a central composite design (CCD) with two variables, RPP and Carr, with proportions ranging from 0.4% − 1.1% (w/v) and 0.29% − 1.71% (w/v), respectively. The optimized proportions of 0.50% (w/v) RPP and 1.28% (w/v) K-Carr resulted in the production of edible film with a tensile strength (TS) value of 7.75 MPa, elongation of 103%, thickness (T) of 99.8 µm, color L (72.5), a* (13.9), b* (0.5), opacity (O) of 4.56 mm− 1, water solubility (WS) of 81%, and water absorption capacity (WAC) of 863%.