The calculated distance (air line) between Cranbourne and Melbourne is approximately 27 miles respectively 44 kilometers.
By car or train, the actual journey to Melbourne is certainly longer, as only the direct route (as the crow flies) between Cranbourne and Melbourne has been calculated here.
Air line (approximately)
44 kilometers
23 nautical miles