Transmission lines are often used as coils in high field magnetic resonance imaging (MRI). Due to the distributed nature of transmission lines, coils based on them produce inhomogeneous field. This work investigates application of series capacitors to improve field homogeneity along the coil. The equations for optimal values of evenly distributed capacitors are derived and expressed in terms of the implemented transmission line parameters.The achieved magnetic field homogeneity is estimated under quasistatic approximation and compared to the regular transmission line resonator. Finally, a more practical case of a microstrip line coil with two series capacitors is considered.