An analytical method based on an optimized solid‐phase extraction procedure and followed by high‐performance liquid chromatography (HPLC) separation with diode array detection was developed and validated for the simultaneous determination of phenolic acids (gallic, protocatechuic, 4‐hydroxy‐benzoic, vanillic, caffeic, syringic, p‐coumaric, ferulic, sinapic, and cinnamic acids), flavanols (catechin and epicatechin), flavonols (myricetin, quercetin, kaempferol, quercetin‐3‐O‐glucoside, hyperoside, and rutin), flavones (luteolin and apigenin) and flavanones (naringenin and hesperidin) in rice flour (Oryza sativa L.). Chromatographic separation was carried out on a PerfectSil Target ODS‐3 (250 mm × 4.6 mm, 3 μm) column at temperature 25°C using a mobile phase, consisting of 0.5% (v/v) acetic acid in water, methanol, and acetonitrile at a flow rate 1 mL min−1, under gradient elution conditions. Application of optimum extraction conditions, elaborated on both Lichrolut C18 and Oasis HLB cartridges, have led to extraction of phenolic acids and flavonoids from rice flour with mean recoveries 84.3–113.0%. The developed method was validated in terms of linearity, accuracy, precision, stability, and sensitivity. Repeatability (n = 5) and inter‐day precision (n = 4) revealed relative standard deviation (RSD) <13%. The optimized method was successfully applied to the analysis of phenolic acids and flavonoids in pigmented (red and black rice) and non‐pigmented rice (brown rice) samples.