We consider optimal control problems for convection-diffusion equations with a pointwise controlor a control localized on a smooth manifold. We prove optimality conditions for the control variable and for the position of the control. We do not suppose that the coefficient of the convection termis regular or bounded, we only suppose that it has the regularity of strong solutions of the Navier–Stokes equations. We consider functionals with an observation on the gradient of the state. To obtain optimality conditions we have to prove that the trace of the adjoint state on the control manifold belongs to the dual of the control space. To study the state equation, which is anequation with measures as data, and the adjoint equation, which involves the divergence of Lp -vectorfields, we first study equations without convection term, and we next use a fixed point method to deal with the complete equations.