Welan gum (WG) has a wide range of applications, but it is not yet suitable for applications such as oil recovery profile control that have complex requirements for viscosity, gelation properties, and so forth. Grafting modification is an important strategy for improving the property of WG, but there are few reports on controllable modification of WG to customize it for specific application. Acrylamide (AM) dosage was identified as the key factor affecting the grafting ratio of AM onto WG by a uniform experimental design. The grafting ratio can be directly adjusted between 99% and 378% based on the positive correlation with dosage of AM, and viscosity can be adjusted between 206 and 327 mPa s based on the negative correlation with grafting ratio. The 50% weight loss temperature of W11 with a grafting ratio of 110% raised from 314 to 336°C after grafting. The viscosity of the hydrogel formed with WG11 reached 15,654 mPa s, nearly nine times higher than that of unmodified WG. In addition, the gelation time can be controlled within 5 days, so that it can be injected to the optimal area in oilfield profile, avoiding pipeline blockage. This study enables adjusting viscosity of WG grafted with AM by controlling the grafting rate, and enhances gelation performance and thermal stability of WG, which will expand the application of WG in oil recovery and other fields.