A microfluidic device for forming droplets includes at least one ferrofluid reservoir disposed in the microfluidic device and containing a ferrofluid therein. The microfluidic device includes a continuous-phase reservoir disposed in the microfluidic device and containing an oil phase therein and one or more microfluidic channels connecting between the at least one ferrofluid reservoir and the continuous-phase reservoir, the continuous-phase reservoir comprising a step region having an increased height as compared to a height of the one or more microfluidic channels. To form droplets an externally applied magnetic field is applied to the device to pull the ferrofluid into the continuous-phase reservoir, whereby droplets are formed at step region.