A bedroom does not need a closet to be legal. What qualifies as a bedroom is a checklist: 70 sq ft, 7 ft ceilings, a 5.7 sq ft escape window, heat, and alarms.
The minimum bedroom size is 70 sq ft, with a 7 ft shortest wall and a 7 ft ceiling. See which room shapes pass or fail, the egress window math, and what fits.