Firefighters took about 20 minutes to put out the fire that broke out on the fourth floor of the building at 1.30am.
No one was injured, police said.
Student, Phumiphat Charoenkhawi, 18, said he and eight friends were sleeping on the third floor when he heard an explosion on the fourth floor. When they went to check they saw the fire. He woke up other friends and ran outside and called police.
Police have yet to determine the cause of the fire.