Rice is a staple food for more than half of the global population. Molecular breeders aim to enhance the grain yield to feed the ever-growing population. Grain size is a key determinant of rice yield and quality, influencing market value and consumer preferences. Grain size is a complex trait that is controlled by multiple genes. This study characterised allelic variation and haplotype diversity of two major grain size genes, SMG11/D2 and GW7, across 280 diverse rice germplasm accessions and evaluated their associations for grain length and width traits. Phenotypic analysis showed significant variation in grain length (5.48–11.1 mm) and grain width (1.80–3.72 mm), with both traits showing normal distributions. Haplotype diversity analysis identified four distinct SMG11/D2 haplotypes GGTAA(H1), GGTAG(H2), AGCGA(H3) and GTTAA(H4) with frequencies of 55.1 %, 21.3 %, 16.2 % and 7.0 %, respectively. In GW7, 2 haplotype groups, TG (H1) and CA (H2), with frequencies of 91.6 % and 8.2 %, respectively. Haplotype-phenotype association analysis revealed significant correlations among the haplotype groups. The one-way ANOVA showed haplotype AGCGA (H3) of SMG11/D2 had a significantly shorter grain length (7.87 mm) than GGTAA (H1) (8.64 mm), a difference of 0.77 mm. The CA(H2) haplotype of GW7 showed significantly increased grain width (3.13 mm) compared with TG(H1) (2.87 mm). These findings demonstrate that the superior haplotypes at the SMG11/D2 and GW7 loci have a significant impact on grain size. Identifying superior haplotype combinations provides valuable genetic resources for haplotype-based breeding strategies to develop rice varieties with desired grain-quality characteristics through marker-assisted selection and genome editing.