DNA serves as the foundation for molecular biology, leading to the development of numerous molecular techniques. Often, these techniques necessitate the separation and visualization of specific DNA regions. Electrophoresis provides a solution for this requirement. However, the purification of DNA from agarose gels presents a significant challenge, both in terms of complexity and cost. Therefore, here we propose a protocol that is both cost-effective and efficient. GFP bands in the PJet vector were visualized and excised for DNA extraction using five treatments. Only the treatment involving TAE buffer failed, while others partially or fully dissolved the gel, aiding DNA recovery. Treatments 2, 4, and 5 showed defined bands without DNA degradation. A nested PCR confirmed the suitability of the recovered DNA for further applications, with only treatments 4 and 5 being amplified. Two additional DNA samples were successfully extracted from a 1% agarose gel using methods 4 and 5, demonstrating their effectiveness.