Skip to main content
Custom domains let you assign your domain name, such as www.my-incredible-app.com to your Replit published app. While Replit provides a free subdomain in the format <your-live-app-subdomain-name>.replit.app, using a custom domain lets you create a more memorable address. A custom domain name can help brand recognition and trust with your app’s users. Watch the following video for a quick overview of setting up Custom Domains:

Connect a domain with automatic setup

The simplest way to connect a domain is to let Replit set it up for you. When you link a domain you already own, Replit configures the required DNS records on your behalf. You no longer have to copy records into your domain provider by hand.
DNS records are the settings that tell the internet where your domain should point. Setting them up by hand used to be the trickiest part of connecting a domain. Replit now handles this step for you for most domains and providers.
1

Open the Publishing tool

After publishing your app, open the Publishing tool and select the Domains tab.
2

Enter the domain you want to connect

Select Link a domain and enter a domain you already own, such as www.my-incredible-app.com.
3

Confirm and let Replit set up your DNS

Confirm the connection, and Replit sets up the DNS records for you. You may be asked to sign in to your domain provider so the change can be applied to your account.
4

Wait for your domain to verify

Your domain shows a Verified status once setup completes. This usually takes a few minutes. Load the domain in your browser to confirm it works.
If your provider is not supported for automatic setup, or you prefer to add the records yourself, you can still connect your domain manually. See Connect a domain manually below.

Features

Custom Domains are available for the following Deployment types: The following table compares Replit’s subdomains with custom domains:
FeatureReplit SubdomainCustom Domain
Hostname customizationSubdomain onlyAny domain that you own
DNS update timeInstantUp to 48 hours
Security Certificates (TLS/SSL)Provided by ReplitProvided by Replit
PriceFreePay your domain provider

Usage

  1. After publishing your app, open the Publishing tool.
  2. Select the Domains tab.
  3. Select Link a domain or Manually connect from another registrar as shown in the following screenshot.
Domains tab

Connect a domain manually

If your provider is not supported for automatic setup, or you prefer to add the records yourself, follow the steps below to set up your custom domain manually.
You might experience setup issues if you have one of the following: - Multiple A records for the same domain name that point to different servers. - A and AAAA records co-exist for the same domain since Replit only supports A records. - Cloudflare proxied domain records since Replit cannot automatically renew security certificates for that type.
1

Add your custom domain

Enter your custom domain name in the text field. You can use a registered domain or include a subdomain.For example, hat-tip.cc is the registered domain and my.hat-tip.cc includes subdomain my.
screenshot of the DNS settings
2

Add the DNS records to your domain registrar

Replit generates DNS records that you must provide to your domain registrar. A domain registrar is the service that manages your domain name, such as GoDaddy or Namecheap.Copy the A and TXT record values from Replit and paste them into your domain registrar’s DNS management section. If your domain registrar does not support @ as a hostname, use your registered domain name.
3

Optional: Add a subdomain

To add a subdomain to your published app, add a new A record with the same IP address in your provider’s DNS management section. For example, if you want to add my-subdomain.hat-tip.cc, you must:
  • Copy the A and TXT record values from Replit to your registrar
  • Add a new A record with a hostname value of my-subdomain using the same IP address as your primary domain
4

Wait for DNS propagation to complete

After adding the records, you must wait for them to propagate online. This can take between a few minutes and 48 hours.When the propagation completes, your Domains tab should show the “Verified” status next to the domain name as shown below:
screenshot of the verified domain status
Load the domain in your browser to verify that it works.