Clash Subscription Formats: YAML Configs, Base64 Links, and Generic Subscriptions

Learn how Clash YAML, Base64-encoded proxy lists, and generic subscriptions differ. Understand conversion, common options, privacy risks, and how to diagnose import failures.

Check what the subscription URL returns

A subscription URL is an endpoint for retrieving content, not a format in itself. The same HTTPS URL can return different content depending on request parameters or the client identifier. A URL ending in .yaml might return a login page, while a URL with no extension can return a complete YAML config. Check the format listed by your provider, then inspect the response body locally if needed. Don’t paste the URL into an online detection tool.

Content typeHow to identify itHow to import it
Clash YAML configTop-level fields include proxies or proxy-providers; a complete config may also include proxy groups and rules.Import it through a config option compatible with your core. A YAML snippet containing only proxies is not a complete config.
Base64-encoded proxy listThe response is often a continuous string. Decoding it usually reveals one URI per line, such as entries starting with ss:// or vmess://.Use a client that supports this list format, or convert the proxies to YAML supported by your target core.
Generic subscriptionThis is a provider’s name for an entry point, not a universal standard. The response might be a plain-text URI list, Base64, or a config generated for the request.Choose the target format explicitly listed in the provider’s dashboard. If only a generic endpoint is available, confirm what it returns for your client.

Base64 is an encoding, not encryption. Also distinguish between two layers: an entire subscription may be Base64-encoded, while a decoded vmess:// link may still contain encoded proxy parameters. When identifying a format, don’t decode the entire response again if it already contains readable URI prefixes.

What can be converted between YAML and proxy lists

Proxy list to YAML: proxies come from the source; routing comes from the template

A converter reads each URI, parses its protocol, server, remote port, and authentication parameters, then writes them to proxies using the target core’s field names. Proxy groups and routing rules aren’t decoded from the proxy entries; the template supplies them. Two configs with identical proxies can route the same domain differently if their group members, group types, or fallback rules differ.

The YAML snippet below illustrates the structure and contains no remote proxies. In proxy-groups, proxies lists group members, not top-level proxy definitions. MATCH applies the specified policy when none of the preceding rules match.

proxies: []
proxy-groups:
  - name: Egress
    type: select
    proxies:
      - DIRECT
rules:
  - MATCH,Egress

YAML to proxy list: extract proxies, not runtime policies

A reverse conversion can only turn supported proxy entries into share links. rules, rule-providers, DNS, and TUN settings aren’t carried over to a plain proxy URI list. If the original config uses proxy-providers to fetch remote proxies, the main YAML file might not contain their details. Converting only that file and getting an empty result doesn’t mean the subscription has no proxies.

Plain-text URI lists and Base64-encoded lists can be encoded or decoded, but that doesn’t change protocol compatibility. Conversion can’t make a transport supported by an older core work. Clash for Windows is no longer maintained. When using the archived 0.20.39 release, check which core is actually loaded; don’t assume it supports mihomo fields just because of the client’s name. For example, if a proxy uses type: hysteria2, the target core must support Hysteria 2. Renaming it as a standard Clash YAML file won’t fix compatibility.

Conversion options, templates, and subscription privacy

  1. Choose the target format before the template. Some conversion tools use target to set the output format and config to choose a rules template. Parameter names and accepted values aren’t universal. Follow the tool’s documentation and check whether the template references other remote rule sets. For your first migration, use a simple template so you can tell proxy issues apart from routing issues.
  2. Keep the source URL separate from the conversion URL. Some tools pass the source subscription in a url parameter. If the source URL contains &, =, or #, assembling the request manually can cause parts of it to be interpreted as outer parameters or a fragment. If you need to enter query parameters manually, URL-encode the entire source URL once as specified by the tool. If the interface handles encoding for you, enter the original URL as is.
  3. Compare proxy counts before and after filtering. Some tools use include and exclude to filter proxy names, and may interpret the input as a regular expression. If the source list has 12 proxies but the converted result has none, remove the filters and try again. Also check for unsupported protocols. A successful conversion request only means a response was generated; it doesn’t guarantee that the response contains usable proxies.
  4. Check how updates work. A conversion result saved once is a static snapshot and won’t refresh when the source subscription changes. If you use the conversion URL as a remote config, updates still depend on that conversion service. When your provider offers a subscription for your core, using the original endpoint removes one potential point of failure.

Clash subscription import failed: troubleshoot by failure stage

Download failed: check the status code and response body

In the legacy Clash for Windows client, open Profiles, paste the subscription URL into the download field at the top, and click Download. For 401, check that the token is valid. For 403, verify your account or endpoint permissions. For 404, check the path in your provider’s dashboard. For 429, stop retrying and wait as instructed by the server. If the status is 200 but the body is an HTML login or notice page, get a fresh subscription endpoint instead of saving the page as YAML.

Download succeeded, but the config failed: check syntax and core compatibility

For a parse error, first make sure the input isn’t a Base64 list or a web page, then check the YAML at the line number shown in the log. Use spaces for indentation and align fields at the same level. Don’t include Markdown code fences when copying. If the log reports an unknown protocol, an unsupported field value, or a rule referencing a nonexistent proxy group, check the target core version, conversion template, and group name respectively. Valid YAML may still fail to meet the core’s config requirements.

Config loads, but traffic doesn’t work: check the selected profile and proxy

Select the newly imported config under Profiles, then open Proxies and confirm the target group has members and the expected proxy is selected. In rule mode, check which policy the test request actually matched; seeing a proxy in the UI doesn’t mean the request used it. On Windows 11, if your test browser relies on the system proxy, check the toggle under General → System Proxy. If an app uses a manually configured proxy, verify the local listening address and port. For example, use 127.0.0.1:7890 only if the config actually sets mixed-port to 7890—not the proxy’s remote port. Don’t enable TUN to fix a config parsing error.

Subscription migration steps for Windows 11

  1. Keep the original config and look for an endpoint in your provider’s dashboard that matches the target core. If a native Clash or mihomo config is available, test that endpoint first instead of converting it.
  2. If only a plain-text or Base64 proxy list is available, generate YAML for the target core. Import it as a new config, compare the proxy count, group members, and MATCH fallback policy, then verify traffic routing in the same app using the same destination.
  3. Test refresh separately. If the config works initially but updates fail, check the subscription URL, token, and remote rule sets or proxy providers. If you’ve edited rules locally, keep a separate copy to avoid losing your changes when refreshing.

For help understanding ports, proxy groups, and TUN, see the glossary. If your config depends on protocols or fields unsupported by an unmaintained core, read the client comparison before deciding whether to switch to a maintained client or ask your provider for a compatible config.

Clash Download