This study presents a novel approach to task scheduling in cloud computing by transforming the problem into a bin packing problem. Three modified bin packing algorithms were proposed, showing significant improvements in metrics such as waiting time and makespan compared to traditional algorithms like particle swarm optimization and first come first serve. The results, validated through simulations using CloudSim, indicate enhanced resource utilization and reduced execution times, ultimately optimizing cloud service delivery.