This page will read a block of RewriteRules and remove duplicate patterns, and resolve chains of redirects to a final URL.
The rewrite rules must be simple literal patterns, with no regexs except ^ and $. See the example data.
By reducing the number of redirects, you your users get a faster page load, and you conserve your SEO crawl budget.
By reducing the number of rules, your server will run slightly faster, because it doesn't need to check the URL against as many patterns.
If you have a redirect project, I may be available to work on it.
If you use this tool, you release me from any liability from any damages related to the code.