It happened at a house on Fillmore and Cypress near Fowler Avenue and Kings Canyon Road.
Neighbors say they heard an explosion at around 2:30 a.m.
Firefighters arrived to find the flames inside the garage and burning part of the roof.
PG&E secured a minor gas leak, and the family was able to make it out safely.
The cause of the fire is under investigation.