Superconducting transmission line resonators can be used to read out different sensors, e.g. flux qubit, transition edge sensor, or as detection element in kinetic inductance detectors. For both applications, high loaded quality factors of the microwave resonators are required, so that it is possible to detect small deviations in their resonance frequency. Thus high loaded quality factors lead to a high sensitive readout.Different coupling methods of quarter wavelength resonators in niobium thin-film technology are studied and optimized with respect to their maximum quality factor and usability for array building or multi-pixel design. Therefore different quarter wavelength resonator samples were designed, simulated, fabricated and measured on common silicon and sapphire substrates at liquid helium temperatures. We achieved an excellent agreement between the simulated and measured quality factors. The achieved values of the quality factor for the two-port resonators were in the range of 40,000 and for the one-port resonators up to = 1 000 000 at 4.2 K. The influence of the coupling coefficient on the quality factor was studied.