_redirects File Generator (Netlify / Cloudflare Pages)

Build a _redirects file for Netlify or Cloudflare Pages from a list of old and new paths. Runs locally in your browser.

About this tool

Enter one rule per line as: /old-path /new-path [301|302]. The output is a ready-to-use _redirects file (source, destination, status per line) that works on both Netlify and Cloudflare Pages. Place it in your publish directory.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter

Frequently asked questions

Where does _redirects go?

In the publish directory root, e.g. the folder deployed to Netlify.

What does 301 vs 302 mean?

301 is permanent and passes SEO value; 302 is temporary.

How do I do a SPA fallback?

Add /* /index.html 200 as the last rule.