It happened shortly before 10:00 a.m. in the 2900 block o Frankford Avenue in the city's Kensington section.
The child was transported to the hospital for smoke inhalation.
Authorities say his injuries do not appear to be serious.
The fire was quickly brought under control.