Format Migration Converter

vercel.json to Cloudflare Redirects Converter

Convert vercel.json to _redirects and migrate Vercel redirects to Cloudflare Pages locally—auto-sorts static rules first, checks quotas, and flags unsupported has/missing rules.

vercel.json (Input)5 rules
4 converted1 warnings1 skippedStatic 2/2,000Dynamic 2/100
_redirects (Output)4 rules
  • Rule #3: Converted host "has" condition to domain-prefixed _redirects source (https://www.example.com/*). Verify host matches your Cloudflare Pages domain. Converted ":path+" (1+ segments) to Cloudflare "*" splat (which also matches empty segment).

  • Rule #4: Skipped: Cloudflare Pages _redirects does not support conditional rules (has.cookie(beta_access)). Use Cloudflare Bulk Redirects, Transform Rules, or Snippets instead.

Rule-by-Rule Migration Report (5)
  • OKRule #1: /old-about → /about

    /old-about /about 308

  • OKRule #2: /docs/:slug* → /guides/:slug*

    /docs/* /guides/:splat 301

  • WARNRule #3: /:path+ → https://example.com/:path+

    https://www.example.com/* https://example.com/:splat 308

    Converted host "has" condition to domain-prefixed _redirects source (https://www.example.com/*). Verify host matches your Cloudflare Pages domain. Converted ":path+" (1+ segments) to Cloudflare "*" splat (which also matches empty segment).

  • SKIPPEDRule #4: /beta → /v2-preview

    Skipped: Cloudflare Pages _redirects does not support conditional rules (has.cookie(beta_access)). Use Cloudflare Bulk Redirects, Transform Rules, or Snippets instead.

  • OKRule #5: /sitemap.xml → /generated-sitemap.xml

    /sitemap.xml /generated-sitemap.xml 200

Migration Reference

Cleanly Migrate Redirects from Vercel to Cloudflare Pages

Use this client-side vercel.json to cloudflare redirects converter to translate JSON routing arrays into production _redirects files with live quota checks.

Automatic Static-First Sorting

Places exact static paths (2,000 limit) ahead of dynamic splats (100 limit) to avoid Cloudflare parser-trap truncation.

Unsupported Rule Diagnostics

Flags header/cookie/query predicates and inline regex like :id(\d+) with Cloudflare Workers or Bulk Redirects notes.

1-Click Simulate & Download

Download _redirects into public/_redirects or open the output directly in the Cloudflare Simulator for batch URL testing.

Rule Translation & Edge Differences

How to Migrate Vercel Redirects to Cloudflare Pages Cleanly

When you convert vercel.json to _redirects, path-to-regexp arrays translate into flat lines without losing status semantics or burning Cloudflare’s dynamic quota.

Automated Mapping

Wildcard, Status & Host Translation

This vercel.json to cloudflare redirects converter maps permanent: true to 308, false to 307, :slug* or (.*) catch-alls to * / :splat, and same-site rewrites to 200, sorting static lines first.

Click Simulate Output → to test inside our Cloudflare Pages _redirects tester or inspect source rules in the vercel.json redirects tester online.

// Input (vercel.json)
{ "source": "/docs/:slug*", "destination": "/guides/:slug*", "statusCode": 301 }

// Output (_redirects)
/docs/* /guides/:splat 301

Manual Migration Checks

Skipped Conditions & Regex Constraints

To migrate Vercel redirects to Cloudflare Pages safely, rules using header, cookie, query, missing predicates, or inline regex groups (:id(\d+)) are flagged and commented in output so nothing drops silently.

Check Next.js configs in the next.config.js redirects tester or use the redirects tester online.

# Skipped automatically with worker/rule guidance:
# [SKIPPED Rule #4] /beta -> /v2-preview (has.cookie(beta_access) unsupported in _redirects)

Syntax Reference

Patterns, Status Codes & Matching Semantics

Pattern / SyntaxBehaviorExample
permanent: true / falseMaps directly to 308 (Permanent) and 307 (Temporary) in _redirects
/blog/:slug* -> /articles/:slug*Translates multi-segment wildcards to Cloudflare * and :splat
has: [{ type: "host" }]Converts static host matchers to https://host/path sources
has: header / cookie / querySkipped with warning (_redirects cannot match headers, cookies, or queries)

FAQ

Common Questions & Edge Cases

How are Vercel has and missing rules converted to _redirects?

Simple static host-only has rules convert to https://host/path sources. Header, cookie, query, and missing rules are skipped with warnings suggesting Cloudflare Transform Rules or Workers.

Why sort static rules above dynamic rules in _redirects?

Cloudflare Pages counts static rules below dynamic * or :param lines toward the 100 dynamic limit. Sorting static rules first protects your 2,000 static quota.

Where does the converted _redirects file go in Astro or static sites?

Place _redirects inside public/_redirects (or your static build output root) so Cloudflare Pages picks it up on deploy.

Can Cloudflare Pages _redirects handle Vercel rewrites?

Same-origin rewrites become status 200 in _redirects. External proxy URLs trigger a warning because Cloudflare Pages _redirects only rewrites relative paths.