Need a good way to produce mass redirects

I’m migrating an ecommerce site from one platform to another, and I need a way to redirect each product page to its corresponding page on the new platform. Since these are just pages like any other and migrating a site is a common task, I can’t imagine that there isn’t some pre-built tool to help with the process of creating the redirects file. Any ideas?