spyc.ai

Free tool

Redirect Map Generator

Pair old and new URLs, export CSV, Apache, nginx or JSON, and catch duplicates, chains and loops.

How it works

What is the Redirect Map Generator?

The Redirect Map Generator is a free tool that pairs a list of old URLs with their new URLs and exports the mapping as CSV, Apache rules, an nginx map or a JSON array. Before you ship it, it flags duplicate sources, conflicting targets, redirect chains where A goes to B and B goes to C, and loops.

How to use the Redirect Map Generator

  1. Paste the old URLs and the new URLs as two lists in the same order, or switch to CSV and paste old,new pairs.
  2. Enter the site domain if your lists mix paths and full URLs.
  3. Read the duplicates, chains and loops the tool reports and fix the lists.
  4. Choose CSV, Apache, nginx or JSON and copy the map.

What is a redirect map?

A redirect map is a table with one row per retired URL and the URL that replaces it. It is the working document of every site migration, redesign and URL cleanup: developers implement it, and SEOs use it to check that each old page lands somewhere sensible.

This tool takes the two columns and turns them into the formats servers and platforms accept, so the same mapping can go to a developer as JSON, to Apache as rules or to nginx as a map.

What is a redirect chain and why does it matter?

A chain is when a redirect points to a URL that itself redirects: A to B, then B to C. Each hop adds a round trip for visitors. Google's documentation says Googlebot follows up to 10 hops, but long chains waste crawl requests, and they tend to grow with every migration.

The fix is to point every old URL straight at the final destination. The tool reports each chain with the full path and names the target you should use. It reports; it does not rewrite your rows.

What is a redirect loop?

A loop is a chain that returns to where it started: A to B and B back to A, or a URL that redirects to itself. The browser gives up with a too-many-redirects error and the page is unreachable for people and crawlers.

Loops usually come from merging two redirect lists written at different times. The generator follows every source through the map and lists each loop once.

How does the tool match paths and full URLs?

Comparison is on the full URL: host, path and query string. If your old column holds paths like /about and the new column holds https://example.com/about, enter example.com as the site domain so both resolve to the same address. Without it, a path and a full URL are never treated as the same page.

Matching is exact. A trailing slash, a different letter case or http against https counts as a different URL, as it does for a server.

How do I build a redirect map for a migration?

Start with every URL that gets traffic or has links: your sitemap, analytics landing pages and a backlink export. Map each to the closest equivalent page, not to the home page. Google may treat a redirect to an unrelated page as a soft 404.

After launch, watch for misses. Feed your 404 report into the 404 Pattern Analyzer to find patterns you forgot. For single rules or presets, use the .htaccess Redirect Generator or the Nginx Redirect Generator.

Questions

What happens to duplicate rows?
An exact duplicate is removed and reported. If one old URL has two different targets, the first is kept, the second is dropped and the conflict is reported.
Can I paste a CSV with a header row?
Yes. A first line that starts with old, from or source is skipped. Columns can be separated by a comma, tab or semicolon.
Why do the Apache and nginx outputs drop query strings?
The directives used, RedirectMatch and a map on $uri, match the path only. The CSV and JSON outputs keep your URLs exactly as pasted.
Is there a limit on rows?
No fixed limit. The work happens in your browser, so very long lists depend on your device.
Is the Redirect Map Generator free?
Yes, with a free spyc.ai account. It runs in your browser, so nothing you type or paste is sent to a server.

Technical SEO Tools

More in Technical SEO Tools

Opengraph Viewer

Paste a URL and see the card it produces when someone shares it — title, description, image.

View Opengraph

Open Graph Generator

Write the Open Graph tags, preview the card, copy the markup.

Generate Open Graph tags

Robots.txt Checker

Fetch any site's robots.txt and test one URL against it: allowed, or blocked by which rule.

View robots.txt

Ready when you are

Before your next buyer asks AI about you, ask AI about yourself

One check, four engines, about twenty seconds. We show you the answers before we ask for anything.