SummaryWith an increasing number of public WiFi hotspots have been constructed in metropolitan areas, citizens can leverage these WiFi hotspots to surf the Internet with their smart devices almost everywhere. Compared to cellular networks, most people prefer using WiFi because this can not only save money by reducing the cellular data traffic but also save energy to prolong the battery lifetime of mobile devices. Mobile offloading techniques give the opportunity for smart devices to offload cellular data traffic to WiFi networks whenever they are connected WiFi networks. Although offloading to WiFi networks can cause communication delay, many delay‐tolerant applications still prefer doing so in order to save the cellular data traffic. Existing offloading approaches only take the application delay tolerance into consideration and therefore easy to induce some tasks missing deadlines. In this paper, we propose a novel WiFi‐aware method for mobile data offloading through WiFi networks with deadline constraints. Specifically, it takes the WiFi distribution in city areas into consideration while making offloading decision. The simulation results on real‐world data have shown that our method improves the percentage of tasks that can meet their deadlines, and reduces the average task completion time by comparing with other outstanding methods.