Microwave electromagnetic devices have been used for many applications in tropospheric communication, navigation, radar systems, and measurement. The development of the signal preprocessing units including frequency-selective devices (bandpass filters) determines the reliability and usability of such systems. In wireless sensor network nodes, filters with microstrip resonators are widely used to improve the out-of-band suppression and frequency selectivity. Filters based on multimode microstrip resonators have an order that determines their frequency-selective properties, which is a multiple of the number of resonators. That enables us to reduce the size of systems without deteriorating their selective properties. Various microstrip multimode resonator topologies can be used for both filters and microwave sensors, however, the quality criteria for them may differ. The development of every resonator topology is time consuming. We propose a technique for the automatic generation of the resonator topology with required frequency characteristics based on the use of evolutionary algorithms. The topology is encoded into a set of real valued parameters, which are varied to achieve the desired features. The differential evolution algorithm and the genetic algorithm with simulated binary crossover and polynomial mutation are applied to solve the formulated problem using the dynamic penalties method. The experimental results show that our technique enables us to find microstrip resonator topologies with desired amplitude-frequency characteristics automatically, and manufactured devices demonstrate characteristics very close to the results of the algorithm. The proposed algorithmic approach may be used for automatically exploring the new perspective topologies of resonators used in microwave filters, radar antennas or sensors, in accordance with the defined criteria and constraints.