The moment a baby girl in her stroller fell into the path of an oncoming freight train at a station in Sydney’s west has been captured on camera.

In exclusive CCTV vision obtained by 9NEWS, the 18-month-old girl’s grandfather can be seen leaping onto the tracks to save her as the train speeds towards them at Wentworthville station at about 10.30am yesterday.

As the freight train driver sounded a horn and came within 100m of the station, the man was able to get the stroller and the baby girl to safety.

Unable to get himself back onto the platform, he was forced to run for his life as the train bore down on him.

He leapt to safety on a broader section of the tracks and escaped unharmed.

The girl suffered cuts and bruises to her head but was otherwise uninjured.