Bulk redirect generator
Turn a list of old and new URLs into correct redirect rules for your server or host, and catch loops and chains before they go live.
Free to use, no sign-up.
How it works
- Paste your list, one old URL and one new URL per line, separated by a comma, tab or arrow. Or open a CSV file. A third column can set 301, 302, 307 or 308.
- Choose where the redirects will run: Apache .htaccess, nginx, Netlify, Vercel, Cloudflare Bulk Redirects or IIS. Press Generate.
- Read the checks. Loops, duplicates and self-redirects are removed, chains can be shortened, and malformed lines are listed with their line numbers. Then copy or download the file.
Questions
Which redirect type should I use?
Use 301 (or 308) when a page has moved for good, and 302 (or 307) when the move is temporary. 307 and 308 behave like 302 and 301 but make browsers repeat the same request method, which matters for forms and APIs. For a site migration, 301 is the usual choice.
What is a redirect chain and why does it matter?
A chain is when /a redirects to /b and /b redirects to /c. Every visitor and crawler has to follow each hop, which is slower and can lose search signals. By default this tool points every page in the chain straight at the last page. You can turn that off to keep your list exactly as written.
What is a redirect loop?
A loop is when pages redirect to each other, such as /a to /b and /b back to /a. Browsers give up with an error. The tool finds loops, lists the pages involved, and leaves them out of the output so they cannot go live.
Does it handle old URLs with query strings?
Yes, where the platform allows it. Apache uses a RewriteCond on the query string, nginx matches the full request URI, Netlify and Vercel match the query, and IIS adds a condition. Cloudflare Bulk Redirects do not accept a query string in the source URL, so those lines are left out of the Cloudflare file and the tool says so.
Why does Cloudflare ask for my domain?
Cloudflare Bulk Redirects need the old domain in every source URL, for example example.com/old-page, and the file has no header row. Type your domain in the box, or use full URLs on the old side, and the tool writes lines in that format.
Is it safe to paste my URL list?
Everything runs in your browser. Your list is not uploaded, saved or tracked. Always test the generated rules on a staging copy before you put them on a live server.
Free tool by Huntsville Software. It runs in your browser; your files and text are not uploaded.