Clash Subscription Formats: YAML Configs, Base64 Proxy Links, and Conversion

Compare Clash YAML subscriptions, Base64-encoded proxy links, and other client formats. Learn how subscription conversion works, when to use it, and what to check afterward.

Check the response before choosing an import option

If your provider already supplies a complete Clash or mihomo config compatible with your core, import that link directly into the client's config or subscription list—there's no need to convert it. Convert or merge only when you have a proxy list, a config made for another client, or need to add nodes to your own routing rules. A URL starting with https:// tells you how the content is retrieved, not what format it uses. Some services return different content depending on request parameters or the client identifier.

What you seeWhat it usually isWhat to do
proxy-groups:, rules:, plus either proxies: or proxy-providers:A Clash YAML config with policiesImport it with a compatible core, then check whether remote proxy providers can update
Only proxies: at the top level, followed by proxy objectsA typical YAML proxy listAdd it through a proxy provider or merge it into your own config; don't expect it to include routing rules
One link per line, such as ss://, vmess://, or vless://A list of plain-text proxy linksUse an import option that supports the format, or convert the links to the target core's proxy fields
A string of encoded text that reveals multiple proxy links when decodedA proxy list wrapped in Base64Identify the decoded content, then parse each link according to its protocol
Only a JSON object, or sections such as [Proxy] and [Rule]Possibly a config made for another clientIdentify the source format; check separately whether its proxies and policies can be migrated

If the content starts with <!DOCTYPE html> or shows a login prompt or expired-token message, check the link and its expiry in your subscription dashboard. An HTTP 200 response can still be a web page, not a config. Changing the file extension, decoding it repeatedly, or adjusting YAML indentation won't fix that.

Clash YAML: complete configs vs. proxy providers

proxies defines proxies in the current file; proxy-providers defines proxy sources that can update independently; proxy-groups determines which routes are available; and rules decide where traffic goes. A proxy listed in the file won't necessarily be used by any rule. If a rule ultimately points to DIRECT, the matching traffic connects directly even if the client shows the proxy as loaded.

Choose an integration method based on what you received

  • Complete config: After importing it, select and apply the config. Confirming that the subscription downloaded successfully and that the config loaded are two separate steps. If it uses remote proxy providers, check after the first load that each provider returned proxies.
  • Replace proxies, keep your own rules: Declare compatible proxy sources under proxy-providers, then reference each provider name in the relevant proxy group's use list. If you put proxy objects directly in the main config's proxies section, reference their names in the proxy group's own proxies list.
  • Replace rule sets: rule-providers supplies rule data, not proxies. Renaming a rule-set file as a proxy subscription—or declaring a proxy source as a rule provider—won't make it work.

“Clash format” doesn't mean “compatible with every Clash core.” For example, adding type: hysteria2 or type: vless to YAML won't add support for those protocols to the original Clash. Check which core and version the client actually uses before choosing an export option in your subscription dashboard. The app's version number may differ from the core's version.

Converting Base64 and client-specific formats

Base64 is an encoding, not encryption or a proxy protocol. A common Base64 subscription encodes a list of proxy links as a whole; some individual links also encode protocol parameters. To convert one, first check for an outer layer of encoding, then identify and parse the protocol used by each link. Don't repeatedly decode every line as if it used the same encoding, and don't paste the decoded text directly under proxies in a YAML file.

  1. Choose the output format first. For a standalone config, export a complete Clash or mihomo config. To keep using your existing groups and rules, choose a proxy-source format supported by your client. If the provider already offers a compatible version, using it directly usually avoids an extra conversion step—and another potential point of failure.
  2. Then map the protocol fields. A converter parses each link into a proxy name, server address, port, authentication details, and transport parameters, then writes them to YAML in a structure supported by the target core. If the source uses features the target core doesn't support, keep the conversion warnings and check which proxies were skipped. Renaming a protocol won't recreate the missing functionality or produce a valid equivalent proxy.
  3. Finally, review the generated config. When a full config is generated from a plain proxy list, its proxy groups, DNS, and rules come from a template—they aren't decoded from the Base64. When migrating a complete config from another client, also check rule syntax, how policy groups select proxies, and the default route. Proxies may migrate even when these settings don't.

What to check after conversion: proxies, groups, and rules

Check addresses, authentication, and transport settings

Compare the number of proxies before and after conversion, then spot-check each protocol. Compare type, server, port, and the relevant authentication fields—for example, a VMess uuid or a Shadowsocks cipher and password. If the count drops, check whether protocols were unsupported, names were deduplicated, or the template filtered proxies. Matching counts don't guarantee that every parameter was converted correctly.

If a proxy loads but won't connect, check its transport and TLS settings. For a mihomo VMess WebSocket proxy, for example, verify network: ws, ws-opts.path, the source config's ws-opts.headers.Host, and servername if TLS is enabled. The WebSocket HTTP Host and TLS server name are separate fields, and neither has to match the dial address. If you see a certificate error, check the server name and certificate first; don't treat skip-cert-verify as a conversion step.

Trace the rules to the actual route

Rules are usually matched in order. Check that broad rules earlier in the list aren't catching traffic meant for more specific rules, then see where the final MATCH points. Next, check that the target proxy group exists and has selectable proxies. If the converter added suffixes to duplicate proxy names, update the group references too; changing a proxy name without updating its references can make config validation fail.

Before enabling the new config, compare its listener and network settings with the old one. For example, if the old config used mixed-port 7897 and the new template sets it to 7890, apps still pointing to 127.0.0.1:7897 may no longer reach the proxy. Migrating proxies alone doesn't require changing dns or enabling tun. If the template changes these fields too, test those changes separately from the proxy conversion.

Import errors, empty proxy lists, or overwritten changes: troubleshoot step by step

Validate a local copy with the same core version

Keep the original config and save the converted result as converted.yaml. If you have a mihomo command-line binary matching the client's version and can run it from a terminal, run this command in the file's directory:

mihomo -t -f ./converted.yaml

Use -t to test the config and -f to specify the config file. Start with the first error; fix YAML types, fields, or references before testing again. If it can't find a local provider file, check the core's working directory and the file path: -f specifies the main config file but doesn't change the core's working directory to that file's location. A successful check doesn't guarantee that remote sources have updated or that the proxies are reachable.

Check the update results and connection logs

  • Import succeeds, but the proxy list is empty: Check whether the provider updated successfully, whether the updated list contains any proxies, and whether the proxy group references the right provider with use. If the source has proxies but the group doesn't, check the group's filters.
  • A proxy is selectable, but traffic isn't using the expected route: Apply the config, send a request from an app configured to use the proxy, then check the matched rule and proxy chain in the client's connections or logs view. If there's no connection entry, first confirm that the app's traffic is reaching the core. If the matched rule shows DIRECT, check the groups and rules instead of decoding the subscription again.
  • Local changes disappear after an update: Distinguish a static local import from a remote subscription. A static copy won't update from its source; refreshing a remote config may replace the entire cached config. To maintain your own routing rules long term, keep a local main config and let only compatible proxy-providers update automatically.

When troubleshooting, change one thing at a time: first confirm the source content can be read, then validate the proxies and rules, and finally check that the app is connected. This helps separate subscription-format, proxy-parameter, and local proxy-access issues without blaming the entire client for one failed conversion.

Download Clash