Clash subscription import: Base64, YAML, and URI formats
Learn how to import a subscription URL and tell Base64 node lists, full YAML configs, and individual URI links apart—and which clients support each format.
Identify the subscription URL, config, and proxy links
A subscription URL starting with https:// is an entry point for fetching a config; it does not guarantee that the response is YAML. A provider may offer both Clash and generic subscription formats, or return different content depending on the request. The “Clash” or “Mihomo” export option in the provider dashboard is a better guide than the URL suffix.
| Content type | How to identify it | Which import option to use |
|---|---|---|
| Clash YAML main config | Contains proxies: or proxy-providers:, usually along with proxy groups and rules |
Import from a remote subscription URL or select a local YAML file |
| Base64-encoded proxy list | Usually a block of encoded text that decodes to one proxy URI per line | Use a client that explicitly supports this list format, or get a Clash YAML config |
| Single proxy URI | Starts with a protocol prefix such as ss://, vmess://, or vless:// |
Use the client’s node import option for that protocol and URI format |
YAML files can serve different purposes. A file containing only a proxies: list may be a provider file referenced by a main config through proxy-providers; it is not the full routing config offered in a provider dashboard. If an import shows nodes but no expected proxy groups or rules, check which export option you chose before changing core settings.
Import a Clash YAML subscription: copy, add, and activate
- Copy the remote URL. In your provider dashboard, select a Clash or Mihomo config and click the corresponding button to copy the subscription URL. Copy the complete string starting with
https://, including any parameters after?. Don’t copy the dashboard URL from your browser’s address bar, or paste a client deep link meant for one-click import into a regular URL field. - Paste the URL into the subscription page. Using the Chinese interface in Clash Verge Rev as an example, open “Subscriptions” in the left sidebar, paste the URL into the field at the top, and click “Import.” A saved remote subscription can be updated from the same URL later. If you only have a downloaded
.yamlor.ymlfile, use the local file option on the config page; downloading a file does not make it a remote subscription. - Switch to the new config. After importing, make sure the subscription appears and select it. Keep your previous working config until you’ve verified the new one. Seeing a subscription name alone doesn’t confirm that the client loaded it into the core.
- Check proxy groups and nodes. Open the “Proxies” page and check that the proxy group names and node count match your expectations. If the config uses remote proxy providers, the main config may load before the nodes arrive. Check the provider’s update status and logs instead of repeatedly importing the same URL.
Check YAML references
This config snippet illustrates the structure. It references only the built-in DIRECT and contains no remote nodes. The key points are that proxy-groups defines a group named “Egress” and MATCH points to that same group. In a real config, node names in the group must also match existing nodes. If nodes are referenced through use, the names must match those under proxy-providers.
proxy-groups:
- name: Egress
type: select
proxies:
- DIRECT
rules:
- MATCH,Egress
For a YAML error with a line number, check the reported line and the one above it. List items need a hyphen, and indentation must use spaces. Correct indentation only means the syntax may be valid; a missing group or a protocol unsupported by the active core is a separate loading issue.
Import Base64 subscriptions and individual URIs
Base64 decodes to a list of nodes—not a config
Base64 is an encoding, not encryption or a config syntax. Generic subscriptions often combine multiple proxy URIs into newline-separated text, then encode the whole block. Decoding it usually gives you node parameters only; it won’t create proxy-groups or rules. Renaming the file to .yaml doesn’t change its contents.
If the client’s remote subscription option explicitly accepts this list format, paste in the URL provided by your service. If it only accepts Clash configs, use the Clash or Mihomo export option in the provider dashboard. A bundled Mihomo core does not guarantee that the client supports Base64 list imports; check the documentation for that import option in your client’s current version.
Import a single URI as a node, not as a subscription URL
For an individual link such as ss://, use the client’s “Import from clipboard” or “Add node” option, provided it can parse that protocol’s URI format. If the interface only supports remote config imports and has no node import option, ask your provider for YAML instead. A single URI is not an update URL, so changes to the node won’t sync automatically.
Troubleshooting failed imports and missing nodes
- First, check whether the request got a response. If the logs show a DNS lookup failure, connection timeout, or certificate error, the client hasn’t received a config to parse yet. Check that the subscription domain resolves, your current network can reach it, and your device clock is correct. Don’t disable certificate validation to bypass certificate errors.
- Next, check the status code and response body.
401or403means the request was unauthorized or denied; check your account status, subscription parameters, and the provider’s access requirements. Even a200response may be a login or error page if the body starts with<!doctype html>. A URL opening in your browser doesn’t mean the client can fetch it—the browser may be sending a login cookie. - Separate response-format issues from core errors. If the response is Base64 text, a plain URI list, or HTML, fix the download source first. If you received the expected YAML but see an unsupported protocol error, check which core is actually enabled and its version—not just the client version. If a proxy group is missing, check that the policy name referenced at the end of the rules exactly matches the group name.
- Config selected, but no nodes. Make sure you’re viewing the right proxy group and that no filters are applied. Then check whether the remote provider downloaded successfully. The main subscription URL and provider URL may be different; successfully importing the main config doesn’t mean the provider URL is reachable.
Verify the config before testing connectivity
First confirm that the new config is selected and the Proxies page shows the expected nodes. If the group supports manual selection, choose a node before running a latency test. For example, a result of 180 ms only means the test request got a response at that moment. The result depends on the test URL and request path; it doesn’t replace testing the apps you actually use.
Next, enable the system proxy and make a new request with a browser that uses the system proxy settings. In the client’s Connections page, check the destination domain, matched rule, and outbound. If the log shows DIRECT, check whether the current rules are supposed to send that traffic direct. If there’s no connection record, check whether the app uses the system proxy. For apps that don’t, check TUN permissions and routing for your platform. TUN changes how traffic enters the core; it won’t fix subscription download or format parsing errors.