A computer program for automatic correlation of marine magnetic profiles is developed and tested. The algorithm involves an iterative stretching the short series selected from the reference profile and cross-correlating with the long series chosen from the other profile. This method gives superior results for correlating near-by profiles and relatively reliable results even for very distant profiles located in different oceans. To increase the effectiveness of the method, it is essential to choose proper window size for the long series and an assumed range of stretching between profiles.