Hayden Carroll, 27, of Alder Close, Leyland, put his hands over the youngster's face and nose before raging and throwing clothing around during an incident in a house in South Ribble, Preston Crown Court was told.
Carroll, who has 31 convictions for 59 offences, pleaded guilty to causing actual bodily harm to the youngster, who cannot be named for legal reasons, as well as assaulting a woman on the same date.
Sentencing him, Judge Beverly Lunt said: "This was a very nasty and unpleasant incident and it was nasty and unpleasant assault.
"The victim was vulnerable and of course a weapon was used. It was also a fairly sustained incident.
"But it was not just an ordinary section 47 assault - the victim was a child."
Carroll appeared to cry in the dock as she added: "You turned on her in the most malicious way because you were under the influence of drugs and alcohol.
"You caused a nosebleed and you threw items at her.
"The number of aggravating features elevates this assault, there's no question about that."
The court heard the attack happened after the defendant, who was on prison licence for a robbery, had been "drinking all day and sleeping all night".
Prosecuting, Joshua Bowker said Carroll became irate with the child.
Prosecutors say he lost his temper when a woman tried to defend the girl, and had pushed the woman in the chest, pushing her head under a kitchen tap and slapping her face three times.
Police arrived at the scene at around 4.10pm and saw blood on the child's clothing.
The youngster later told officers Carroll had put his hands over her face and nose and pushed her face.
Claire Larton, defending, said since his remand into custody Carroll was engaging with the drugs and alcohol team in prison and had asked for assistance with anger management.
The Lancashire Post is more reliant than ever on you taking out a digital subscription to support our journalism. For unlimited access to Lancashire news and information online, you can subscribe here.