The steady two-dimensional flow and heat transfer of a non-Newtonian power-law nanofluid over a stretching surface under convective boundary conditions and temperature-dependent fluid viscosity has been numerically investigated. The power-law rheology is adopted to describe non-Newtonian characteristics of the flow. Four different types of nanoparticles, namely copper (Cu), silver (Ag), alumina (Al 2 O 3) and titanium oxide (TiO 2) are considered by using sodium alginate (SA) as the base non-Newtonian fluid. Lie symmetry group transformations are used to convert the boundary layer equations into non-linear ordinary differential equations. The transformed equations are solved numerically by using a shooting method with fourth-order Runge–Kutta integration scheme. The results show that the effect of viscosity on the heat transfer rate is remarkable only for relatively strong convective heating. Moreover, the skin friction coefficient and the rate of heat transfer increase with an increase in Biot number.