Redirect Rules Converter
Convert exact CSV path mappings into a ready-to-copy Cloudflare Pages _redirects file.
- Free
- Works Offline
- No Uploads
How to Convert Redirect Rules from CSV
- Open the HTML, review Security Check, then select Continue.
- Choose a mapping CSV or click Open Sample. Redirect Map Generator CSV with source,destination,status opens directly.
- Keep CSV statuses with 301 for blanks or choose one status for all rules.
- Select Convert Redirect Rules, review the output and choose Copy Rules or Download to save _redirects.
Static Redirect Rule Conversion
- Open two or three comma-delimited columns containing exact sources, destinations and optional statuses.
- Keep stated redirect statuses or apply one supported status to the entire batch.
- Copy the complete result or save a plain-text Cloudflare Pages _redirects file.
Formats and Compatibility
| Input | UTF-8 mapping CSV with two path columns and an optional status column. The header, if present, is from,to, old,new, old_path,new_path, or source,destination, with status or status_code as the optional third name. |
|---|---|
| Output | An extensionless Cloudflare Pages _redirects file. Each line has three separated tokens for source, destination and status. |
| Browser | A modern browser with local file support. |
| Scope | Accepts a 4 MiB UTF-8 CSV and emits up to 2,000 exact same-site rules, each up to 1,000 ASCII characters. Supports 301, 302, 303, 307 and 308. |
| Operating Systems |
Local Conversion Without Uploads
Convert redirect rules without uploading files. The browser-based converter reads the chosen CSV locally with no upload and displays paths as text.
Select Open Sample to see the workflow with the included example.
CSV Path Maps and Cloudflare Pages Rules
The tool converts exact, same-site URL paths, including paths ending in .html. To convert redirect rules for HTML files, enter their public URL paths in the CSV. HTML documents, wildcard rules and conditions are outside this mapping profile.
Check and Use the Generated Rules
The sample keeps /field%20notes as the source and /archive/maps,notes as the destination with status 307. Each token stays separate in _redirects. If a row has an unsupported path, invalid status, duplicate source or a loop, fix the reported row and try again.
Frequently Asked Questions
Can I convert redirect rules offline?
Yes. Extract the convert redirect rules download ZIP and open RedirectRulesConverter.html. The standalone works offline.
How do I convert redirect rules in browser mode?
Choose your CSV, set how statuses are handled, and copy the generated Cloudflare Pages rules or save them as _redirects.
Is this a free convert redirect rules tool?
Yes. Use the local convert redirect rules workflow free for personal or business use.
What happens to literal commas and spaces?
Quote a comma-containing field in CSV. A literal comma is preserved in the output token. Use %20 for a space in a URL path. Write source percent escapes with uppercase hexadecimal digits.
Which rules can this convert?
It accepts exact same-site paths. Query strings, fragments, wildcard and placeholder syntax, extra condition fields and external destinations are outside this profile.
Which limits apply?
Choose UTF-8 CSV up to 4 MiB. The output supports at most 2,000 static rules and 1,000 characters per rule, including separators and status.
How are duplicate sources handled?
Each source can appear once. A duplicate, conflicting mapping or loop stops the whole export so you can fix the CSV.
Does the tool check deployed routing?
The converter validates and writes static syntax. Cloudflare Pages routing and any preexisting rules are configured separately.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.