The aim of this study was to determine the optimal reaction conditions for the synthesis of hyperbranched cyclodextrin polymer (CDP) and to investigate their performance as drug carriers. In this study, β-Cyclodextrin (β-CD) was used as the basis for CDP nanocarriers, which were synthesized by reacting β-CD with pyromellitic dianhydride (PMDA) as a crosslinking agent. The effects of β-CD/PMDA molar ratio and reaction time were investigated to optimize the synthesis of CDP. The optimal reaction conditions were determined to be a reaction time of 2 h and a molar ratio of 1/12 β-CD/PMDA. Ketoprofen (KP) was used as a model drug to evaluate the loading capacity of CDP. The effects of KP/CDP (w/w) loading ratio, temperature, and stirring speed on the formation of the KP/CDP inclusion complex were investigated. The optimum conditions for loading KP into CDP were found to be 1/4 KP/CDP ratio, 4 h, 35 °C, and 300 rpm with a loading efficiency of 39.57%. Characterization of the CDP was performed using Zetasizer, FTIR, DSC, SEM and XRD analysis.