Polysaccharides have gained attention from researchers due to their various therapeutic and biological advantages; hence, various sources are being explored. Oats were chosen in this study to be an efficacious and economical source of dietary fiber (DF). Oats are mostly used for livestock and poultry feed and thus has a low utilization rate and low added value. In this study, dietary fiber was extracted by sonication with extraction conditions optimized using the response surface methodology (RSM). Three factors including time, temperature, and amplitude were taken at three levels. The optimal extraction conditions were found to be 14.65 min for time, 24.23°C for temperature, and 76.51% for amplitude. Under these optimal conditions (as shown in Figure 5), the observed values for yield, TDF, SDF, and IDF were 34.267 g, 14.6882 g, 4.0731 g, and 10.6241 g, respectively. X-ray diffraction analysis indicated maximum crystallinity due to the acoustic effect of the sonication process. Scanning electron microscopy showed a loose porous network structure. Fourier-transform infrared spectroscopy of DF showed characteristic absorption peaks at 3620.39 cm-1, 3450.65 cm-1, 2914.44 cm-1, 1720.5 cm-1 , 1519.91 cm-1 1438.9 cm-1 , 1249.87 cm-1, and 1022.27 cm-1, , while the infrared spectrum showed characteristic absorption peaks at 3450.65 cm-1 , 3450.65 cm-1, 2914.44 cm-1, 1720.5 cm-1 , 1519.91 cm-1 1438.9 cm-1 , 1249.87 cm-1, and 1022.27 cm-1, which is consistent with the structure of cellulose polysaccharide. Differential scanning calorimetry analysis showed that there were three exothermic peaks at 240–310 °C, 320–350 °C, and 440–460 °C, which may represent the pyrolysis peaks of hemicellulose, cellulose, and lignin, respectively, indicating that DF had good thermal stability. The results indicate that the oat DF can be used for the production of dietary fber products and health-care products.