Magnetic fields and their applications in medicine and biology are an active area of research in recent years. Some of these applications include chronic wound healing, electrical stimulation of cardiac tissue and medical imaging among others. The effectiveness of these applications strongly relies on the uniformity of the field, a feature closely related to the arrangement of the coils that generates it. In this paper, genetic algorithms are used to create appropriate arrangements of coils in order to generate a field with a wide volume of uniformity. Results show that the proposed methodology is an effective tool for designing coil arrangements capable of generating magnetic field within an arbitrary volume of interest in which field uniformity is higher than in designs using a traditional approach.