Clash Subscription Formats: YAML Configs, Base64 Links, and Converting Subscriptions
Learn how Clash YAML configs, Base64-encoded subscriptions, and single-node links differ—and what happens to rules and proxy groups when you convert formats.
How to Identify a Clash Subscription Format
First, tell a download URL from configuration content. A subscription URL starting with https:// only tells you that the client fetches content over HTTPS. It doesn't tell you whether the response is Clash YAML, a Base64-encoded list of nodes, or a login page. It's normal for a URL not to end in .yaml; even that extension doesn't guarantee the content is a usable config.
| Content received | How to identify it | Where to import it |
|---|---|---|
| Clash YAML config | May include top-level fields such as proxies, proxy-groups, and rules |
Import from a remote subscription URL or select a local YAML file |
| YAML proxy provider file | Often a top-level proxies list; check the source's documentation |
Reference it from the main config using proxy-providers, as supported by your client and core |
| Base64-encoded proxy subscription | Some services join multiple proxy links, one per line, then Base64-encode the resulting text | Use an import option that explicitly supports this format, or request a Clash-compatible subscription from the provider |
| Single proxy link | For example, a share link starting with ss:// or vless:// |
Use an import option that explicitly supports the protocol and share link; don't treat it as a YAML subscription URL |
If the source offers options for “Clash,” “Clash Meta,” and “universal subscription,” first check which core your client actually runs. A config intended for mihomo (formerly called Clash Meta) may not work with the original Clash. For example, if a config contains type: vless, being able to read YAML doesn't mean the core supports that proxy type.
How a Clash YAML config routes traffic
proxies defines proxies, proxy-groups organizes proxies or built-in outbound options into selectable strategies, and rules decide which strategy handles each connection. A proxy list and a proxy group aren't the same thing: seeing proxies in the client only confirms they've been loaded, not that requests will use them.
Minimal example: proxies, groups, and rules
mode: rule
proxies: []
proxy-groups:
- name: DEFAULT
type: select
proxies:
- DIRECT
rules:
- DOMAIN-SUFFIX,example.org,DIRECT
- MATCH,DEFAULT
This example has no remote proxies; it only illustrates the config structure. Rules are evaluated in order: example.org and its subdomains use DIRECT, while all other requests go to DEFAULT. Since DIRECT is also the group's only option, both paths ultimately connect directly. Put MATCH first and the domain rule never gets a chance to match.
Two provider fields that are easy to confuse
proxy-providerssupplies proxies. Proxy groups can reference providers withuse; an emptyproxiessection in the main config doesn't necessarily mean no proxies are available.rule-providerssupplies rule sets. The main config typically references one with a rule such asRULE-SET,rule-set-name,policy-name. A rule-set file isn't a proxy subscription, and loading one won't add selectable outbound options.
Base64 subscriptions vs. single proxy links
Base64 is an encoding, not a proxy protocol or encryption. For example, aGk= decodes to hi. A universal subscription often puts multiple share links into one encoded string; after decoding it, each link still needs to be parsed. Some sources return multiple unencoded lines, while link parameters may themselves contain encoded data. The presence or absence of a trailing = isn't enough to identify the format.
A single proxy share link usually describes one outbound connection. The client needs to identify its protocol, server, port, and protocol-specific parameters. Even if converted YAML includes server and port, check that transport settings, TLS, and other related parameters were preserved. For example, if the original link uses WebSocket and the path is lost during conversion, the proxy may still appear in the list but fail to connect.
Which rules and proxy groups survive subscription conversion?
Turning a plain proxy list into Clash YAML adds routing structure from a template; it doesn't restore the original rules. If the input contains only proxies, a converter can't know which domains you previously routed directly, which proxy was the default, or which proxies belonged to a latency-test group. Groups and rules in the output come either from the conversion template or from a separate config you supplied.
- Universal subscription to YAML: Parsable proxies are added to the list; groups such as
selectandurl-testare determined by the template. Manual-selection groups and automatic latency-test groups behave differently, so don't assume a familiar group name means familiar behavior. - Full YAML config to proxy subscription: Usually, only proxies that can be represented as share links are exported. Existing groups, rule order, DNS, and TUN settings aren't included in the proxy list. If proxies come from a provider, check separately whether the converter can read that provider.
- Full YAML config with a new template: Check group references and rule targets. If the original rules point to “Manual Select” but the new template only creates
DEFAULT, update those references too. Renaming a group alone can leave rules pointing to a target that no longer exists.
The update behavior changes too. Importing a locally converted YAML file gives you the content generated at that time; it doesn't enable automatic updates from the original subscription. If you import a remote URL provided by a conversion service, the client periodically fetches that new URL. Whether it gets new proxies depends on whether the service fetches the source subscription again. The service may also have access to credentials in the source URL. If the provider already offers a compatible Clash URL, use that directly.
Troubleshooting failed imports and unexpected routing
- Check the fetch result first. In Clash Verge Rev, paste the remote subscription URL on the “Subscriptions” page in the sidebar, then select “Import.” For a local file, use the file import option on that page. If the log shows HTTP
401or403, check the URL credentials and account permissions first. If the response is200but starts with<!doctype html>, check whether it's a login or error page before editing the YAML. - Next, check the fields and core. If the log points to a YAML line, check its indentation, colons, and list dashes, along with those on the preceding lines. If the log reports an unknown proxy type, check whether the current core supports that protocol. Renaming the file to
.yamlwon't change its contents or add protocol support. - Finally, check the matched rule and actual outbound route. Keep the old config, import the new one as a separate profile, and enable it. Switch to Rule mode, visit one site expected to connect directly and another expected to use a proxy group, then check the matched rule and outbound route on the “Connections” page. A successful latency test only means that probe got a response; it doesn't prove that application traffic matched the expected rule. If the request doesn't appear on the “Connections” page, use the troubleshooting guide to check whether traffic is reaching the client before changing routing rules.