A Townsville mother has appeared in court after allegedly punching her baby in the face at the weekend.

A north Queensland mother accused of punching her baby girl in the face has appeared in court.

Police say a passer-by allegedly saw the 29-year-old punch the crying baby, who was in a pram on a footpath, in the Townsville suburb of North Ward on Saturday afternoon.

The baby was taken to hospital with bruises and was in a stable condition on Monday.

The mother appeared briefly before the Townsville Magistrates Court on Monday charged with assault occasioning bodily harm.

She was granted bail and will reappear in court on February 7.