The objective of this study was to encapsulate gallic acid in Hydroxypropyl methylcellulose (HPMC)/poly-ethylene oxide (PEO) blend nanofiber by using electrospinning and examine the usage of nanofibers as active packaging materials. Gallic acid loaded nanofibers showed homogenous morphology. Gallic acid was loaded into nanofibers efficiently and nanofibers showed strong antioxidant activity. As the gallic acid amount increased, the TGA curves had shifted one stage to two stage degradation and degradation temperature (T-d) of gallic acid decreased from 275 degrees C to 250 degrees C due to the crystalline structure change. Interaction between gallic acid and HPMC/PEO nanofiber demonstrated that gallic acid successfully embedded into the nanofibers. Gallic acid loaded nanofibers decreased the oxidation of walnut during storage. Overall, electrospinning technique was proved to be an efficient method to encapsulate bioactive compounds and gallic acid loaded nanofibers showed promissory results that can be suggested as great potential to active packaging material.