Next.js & Vercel Redirect Config Generator

Convert URL migration lists into ready-to-paste next.config.ts async redirects() or vercel.json rules.

Inputs

Convert old-to-new URL maps into production next.config.ts and vercel.json permanent redirects.

Generated next-redirects.ts

Ready to copy or download. Runs 100% in your browser.

async redirects() {
  return [
  {
    "source": "/services-old",
    "destination": "/services",
    "permanent": true
  },
  {
    "source": "/seo-audit",
    "destination": "/tools/free-website-seo-scanner",
    "permanent": true
  },
  {
    "source": "/blog/old-post",
    "destination": "/blog/new-post",
    "permanent": true
  }
];
}
  • Generated 3 permanent redirect(s) for next.config.ts.

Common questions

Does Next.js permanent: true return 308 or 301?

Next.js redirects with permanent: true return HTTP 308, which search engines treat identically to a permanent 301 redirect.

When should I put redirects in vercel.json instead?

Both work cleanly; vercel.json runs at the edge even before invoking the Next.js router.