UNLABELLED: Different proportions of cellulose nanofibers (CNFs)/cellulose nanocrystals (CNCs) and low methoxyl (LM) pectin were used to prepare hydrogels. By analyzing the apparent morphology, gel strength, rheological characteristics, microstructure, and interaction between cellulose and LM pectin, the characteristics of hydrogels created by the combination of different forms of nanocellulose and LM pectin were compared. At the same concentration, the strength of hydrogel formed by the combination of CNCs and LM pectin was higher than hydrogel formed by the combination of CNFs and LM pectin, which was consistent with the gel structure. The gel formed by the combination of LM pectin and CNFs had stronger viscoelasticity than the gel formed by the combination of LM pectin and CNCs. When the ratio of LM pectin to CNFs/CNCs is 0.5/0.5, a better gel network structure is formed, and the viscoelastic properties of the gel formed at this concentration under shock conditions are better protected. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1007/s10068-024-01684-z.