Add your own domain when you want one
A domain is a name such as littlegarden.com. It is optional: your free Cloudflare address already works.
Compare annual domain costs and connect a purchased name to the working website.
Let’s do this
- 1In your browser
Decide whether you need to buy a name
Keep pages.dev while learning. A custom name can make a business site easier to remember. Domain registration pays for the name; hosting serves the files. Buying a name does not automatically create a website.
- 2In Cloudflare
Compare the first year and renewal
Open Cloudflare Domain Registration and search for your name. Cloudflare Registrar offers supported endings at cost, without its own markup. Check the actual checkout total, tax and renewal amount. Some first-year discounts elsewhere renew at a much higher price. Cloudflare Registrar requires Cloudflare nameservers.
Cloudflare: register a new domain (opens a new tab) - 3In Cloudflare
Register only when you are ready
Check spelling carefully, enter your own registrant details, review renewal settings and complete payment yourself. Keep a recovery method for the account and a valid payment method if using automatic renewal. If you already own a name, follow the existing-domain instructions instead of buying another.
Cloudflare Registrar: domain registration (opens a new tab) - 4In Cloudflare
Attach the domain to your Pages project
Open Workers & Pages, choose the working Pages project, then Custom domains and Set up a custom domain. Enter the name and follow the DNS steps. For a root domain such as littlegarden.com, its DNS zone must be on Cloudflare. With a Cloudflare-registered domain, that is already the normal arrangement.
Cloudflare Pages: custom domains (opens a new tab) - 5In your browser
Check the secure address
Wait for the domain and certificate to become active. Visit the https address in a private window and on your phone. If you want both the root name and www, add and test both through the supported setup and choose one to redirect to the other.
A message for your AI helper
My website already works on its pages.dev address. Help me decide whether I need a custom domain. If I do, compare the actual registration and renewal prices for [domain], including tax and nameserver requirements. I will complete the purchase. Then guide me through connecting the domain to the existing Cloudflare Pages project and checking HTTPS, the root name and www. Do not buy or transfer anything for me.
What you should see
Either you have deliberately kept the free address, or your chosen custom domain opens the same working website securely.
If you get stuck
Checked 7 September 2026. Screens can change; the official guides below have the latest steps.
Cloudflare Registrar: domain registrationCloudflare: register a new domainCloudflare Pages: custom domains