CSV file format for Bulk Redirects

Last updated Jul 16, 2026 You can use a CSV file to import URL redirects into a Bulk Redirect List using the Cloudflare dashboard. Each line in the CSV file must follow this format:

<SOURCE_URL>,<TARGET_URL>[,<STATUS_CODE>,<PRESERVE_QUERY_STRING>,<INCLUDE_SUBDOMAINS>,<SUBPATH_MATCHING>,<PRESERVE_PATH_SUFFIX>]

Only the <SOURCE_URL> and <TARGET_URL> values are mandatory. The default value of <STATUS_CODE> is 301 and the default value for all the boolean parameters is FALSE.

To enable one of the URL redirect parameters, use one of the following values: TRUE or true. To keep an option disabled, use one of FALSE or false, or enter a comma (delimiter) without entering any value.

Example CSV file

All the lines in this example are valid lines that you can import in the dashboard:

example.com/contacts,https://example.net/contact-us,301,,,,
example.com/about,https://example.net/about-us,,FALSE,TRUE,,
example.com/docs,https://example.com/draft-docs,302,,TRUE

Important remarks

  • The source URL cannot include a query string. For details on which URL components are supported in source URLs, refer to Supported URL components in Bulk Redirects.
  • The CSV file must not include a header row with column names.
  • A source/target URL must be enclosed in quotes ( ") when it includes a comma ( ,). You can always enclose URL values in quotes, but it is not required.
  • You can skip an optional value by immediately entering a comma (the delimiter) without entering any value.
  • You do not need to include trailing commas.

Was this helpful?

YesNo

On this page

CSV file format for Bulk Redirects - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/csv-file-format/#page","headline":"CSV file format for Bulk Redirects","description":"CSV file format for importing Bulk Redirect lists.","url":"https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/csv-file-format/","inLanguage":"en","image":"https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/csv-file-format/og.png?v=cb4cf6dcef75e850","dateModified":"2026-07-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Available fields and functions for Bulk Redirect rules. title: Available fields and functions image: https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/fields-functions/og.png?v=7fefbbb932af71a1


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/rules/llms.txt
Use this file to discover all available pages before exploring further.