Microdeck.tools 100% In-Browser

Bulk HTTP 301/302 Redirect Rules Generator

New

Simplify domain migrations and URL restructures without error-prone manual regex editing. Paste legacy-to-new path mappings (`old -> new 301` or CSV) and convert cleanly across 5 popular hosting targets: Cloudflare Pages/Netlify `_redirects`, Cloudflare Bulk Redirects CSV, Nginx `rewrite`, Apache `.htaccess`, and `vercel.json`.

100% In-Browser No Server Storage Instant Results
Generated Rules (4 redirects)

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

The parser accepts `old -> new`, comma-separated CSV, tab-separated spreadsheet columns, or space-separated pairs (with optional per-line `301`/`302` override), escapes regex metacharacters cleanly for Apache/Nginx targets, and formats ready-to-upload host configuration artifacts.

Step-by-Step Instructions

1

Select your target platform (`Cloudflare / Netlify _redirects`, `Cloudflare Bulk CSV`, `Nginx`, `Apache .htaccess`, or `vercel.json`).

2

Choose your default HTTP redirect code (`301 Permanent` vs `302 Temporary`).

3

Paste legacy and target paths (e.g., `/blog/old -> /guides/new 301` or CSV columns).

4

Copy output or click Export to download the platform configuration file.

Key Features & Performance

  • Supports 5 major edge & origin syntax formats from a single source mapping list
  • Flexible input parser accepts arrow `->`, CSV commas, tabs from Google Sheets, or whitespace columns
  • Supports per-line `302` overrides alongside default `301` redirects
  • Escapes literal regex characters (`.`, `?`, `+`) cleanly when targeting Nginx or `.htaccess`
  • Zero external upload: ideal for pre-launch site migrations and unreleased URL structures

Methodology, Formulas & Technical Standards

Nginx output emits exact-match `location = /source { return 301|302 target; }` blocks while `.htaccess` emits escaped `RewriteRule ^escaped$ target [R=301|302,L]`; `vercel.json` sets `"permanent": status === 301`.

Common Real-World Use Cases

  • Migrating an old WordPress `/blog/year/slug` taxonomy to clean `/guides/slug` URLs without losing SEO equity
  • Generating a Cloudflare Pages `public/_redirects` file or Bulk Redirect CSV import
  • Consolidating promotional landing links (`302` temporary redirects) before product campaigns
  • Translating client redirect spreadsheets from Excel directly into Nginx `server {}` snippets

Worked Examples & Edge Cases

Multi-Target Compilation

Input
/pricing-v1 -> /pricing 301
Output
_redirects: `/pricing-v1 /pricing 301` | Nginx: `location = /pricing-v1 { return 301 /pricing; }`

Eliminates manual syntax mistakes across server configs.

Splat Wildcards on Cloudflare / Netlify

Input
/docs/legacy/* -> /docs/v2/:splat 301
Output
/docs/legacy/* /docs/v2/:splat 301

Maps wildcard subtrees cleanly in static edge hosts.

Limitations, Scope & Accuracy Notes

  • • Cloudflare Pages `_redirects` files enforce platform limits (up to `2,000` static + `100` dynamic rules); larger migrations should export **Cloudflare Bulk CSV** instead.
  • • Regex-specific capture patterns (`:splat`) work natively on Netlify/Cloudflare `_redirects` while Nginx/Apache require regex review.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Bulk HTTP 301/302 Redirect Rules Generator runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

When should I use `301 Permanent` vs `302 Temporary` redirects?

Use `301` when a URL moved forever so search engines transfer ranking signals to the new page; use `302` for seasonal promos or temporary maintenance routes.

Can I paste two columns straight from Excel or Google Sheets?

Yes. Tab-separated columns (`old\tnew`) and commas (`old,new`) both parse cleanly.

What is Cloudflare Bulk CSV format for?

Cloudflare Account-Level Bulk Redirects accept CSV imports (`source,target,status,...`) to scale tens of thousands of rules beyond Pages `_redirects` limits.

Are trailing slashes handled in Nginx and `.htaccess`?

Yes — generated rules include optional trailing slash matching (`/?$`) automatically.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.