Not every proxy provider gives you a profile that Clash can import directly. A provider may send a single Shadowsocks link, a group of V2Ray links, a Base64-encoded subscription, or a URL designed for a different client. Clash and Mihomo normally expect a YAML configuration with top-level sections such as proxies, proxy-groups, and rules. A node link is only one piece of that configuration, so importing it without conversion may produce an empty profile, an unsupported scheme, or a file that contains nodes but no usable routing policy.
A subscription converter fills the format gap. It reads the provider’s source URL or node links, transforms them into Clash-compatible YAML, and may add proxy groups, rules, DNS settings, or rule providers. This is convenient, but the converter also becomes a place where your subscription URL and proxy credentials may be exposed. The safest workflow is to identify the source format first, use a trusted conversion path, inspect the generated YAML, and then import it into the client that actually runs the required kernel.
Clash Subscription Converter Guide: Import SS and V2Ray
Identify the subscription format before converting it
The first step is to determine what the provider has actually supplied. The visible name in a provider dashboard is not enough: a link labelled “Clash subscription” may return YAML, while a link labelled “通用订阅” may return Base64 text containing several different protocols. Open the URL only in a safe environment or inspect its response headers and content without publishing the address. You are looking for the data structure, not just the file extension.
| Source type | Typical appearance | What Clash needs | Common conversion issue |
|---|---|---|---|
| Clash YAML | Readable keys such as proxies: and proxy-groups: |
Usually ready to import, subject to kernel compatibility | Unsupported fields, invalid indentation, or missing rules |
| Shadowsocks link | ss:// followed by encoded or readable parameters |
A YAML proxy entry with server, port, cipher, and password | Incorrect URL decoding or unsupported cipher |
| V2Ray or VMess link | vmess://, often Base64-encoded JSON |
A protocol-specific YAML entry and transport options | Missing TLS, WebSocket path, Host, UUID, or alterId mapping |
| VLESS or Trojan link | vless:// or trojan:// with query parameters |
A Mihomo-compatible proxy definition | Required support may be unavailable in an older Clash core |
| Base64 subscription | Long encoded text, often containing several node links after decoding | Each decoded link must be parsed individually | Wrong character encoding, line breaks, or mixed protocols |
A URL that returns a plain text list is not automatically a Clash profile. For example, a provider may return one ss:// link per line. A converter can turn those lines into the proxies section, but the resulting document still needs a proxy group and rules. Conversely, a YAML document may already contain a full configuration and should not be passed through a converter intended for raw node links, because the converter could discard existing groups or custom rules.
Recognize Shadowsocks links
Shadowsocks links generally identify a server address, server port, encryption method, and password. Modern links may encode the method and password together before the host and port, while other links use URL fragments for the node name. Special characters must be decoded carefully. A password containing a slash, plus sign, question mark, or percent escape can be changed accidentally by an over-simplified parser.
Recognize V2Ray-family links
V2Ray-family links carry more transport information than a basic Shadowsocks link. A VMess entry may include a UUID, security method, network type, TLS flag, WebSocket path, Host header, or gRPC service name. VLESS and Trojan links commonly express these values through query parameters. The protocol name alone does not tell you whether the generated Clash entry is complete. If the transport fields are lost during conversion, the node may appear in the client but fail every connection attempt.
Choose a conversion method that matches your trust model
There are three practical ways to obtain a Clash-compatible profile. The provider may offer a native Clash or Mihomo subscription, a provider-hosted conversion endpoint, or a separate converter that you operate locally. These methods differ in convenience and privacy. A native profile is usually the simplest choice because the provider controls the output format and can preserve its intended groups and rules. A provider-hosted converter may be useful when the provider supplies only generic links, but you still need to confirm how the service handles submitted URLs.
Native Clash profile
Use this when the provider supplies a URL that returns valid Clash or Mihomo YAML. It normally preserves the provider’s node names, groups, and update behavior with fewer moving parts.
Provider conversion endpoint
Useful for converting generic links under the provider’s own service. Review the domain, HTTPS certificate, privacy terms, and whether the generated URL contains your original credential.
Local conversion workflow
Best for users who handle private subscriptions regularly. The source URL and generated content can remain on a controlled machine instead of being sent to a public form.
A public converter is not automatically unsafe, but its convenience should not hide the risk. The operator may log the source URL, retain the generated node list, inject extra rules, or rewrite the update URL. A page may also be impersonating a familiar tool through a similar domain name. If you must evaluate a conversion service, use a disposable subscription or a short-lived token first, inspect the generated result, and revoke the test token afterwards.
The converter also needs to target the correct core. Basic Clash syntax and Mihomo syntax overlap, but protocol support and advanced fields are not identical. If the output contains VLESS, Reality, gRPC, rule providers, TUN options, or modern DNS fields, a client using an old Clash core may reject or ignore them. Check the active kernel in the client’s About page, core settings, or startup log rather than judging compatibility from the client name alone.
Convert SS or V2Ray links and import the result
The following workflow is designed for Clash Verge Rev, Mihomo-based desktop clients, and other clients that can import a remote YAML profile. Menu names vary slightly between releases, but the sequence is the same: preserve the original source, select the target format, generate the configuration, validate it, and import it as a profile. Do not overwrite a working configuration before confirming that the converted result can be loaded.
- Save the original source. Copy the provider’s subscription URL into a password manager or another protected location. If the source is a local text file, keep an untouched backup. Record the expiration date and any provider-side conversion parameters.
- Confirm the target format. Select Clash or Mihomo YAML rather than a format intended for another client. If the tool offers separate targets, choose the one matching the active kernel and avoid enabling advanced options that your client cannot support.
- Add the source privately. Enter the URL only in the provider’s official panel, a trusted local tool, or a conversion service whose operation you understand. Prefer HTTPS and do not use a shortened URL that hides the destination.
- Generate the profile. If the converter asks for a rule template, proxy group template, or rename option, keep the first conversion simple. A minimal output is easier to inspect than a profile containing many unrelated modifications.
- Inspect before importing. Check that the result begins with valid YAML keys, contains at least one entry under
proxiesor a usable proxy provider, and includes aproxy-groupssection that references existing names. - Import into the client. In the client, open Profiles or Configurations, choose the option for a remote profile or local YAML, and add the generated URL or file. Wait for the download to finish before activating it.
- Activate and test one node. Select the new profile, choose a specific proxy rather than an automatic group for the first test, and check the connection log. This separates conversion errors from group-selection errors.
mixed-port: 7890
allow-lan: false
mode: rule
proxies:
- name: "Converted SS"
type: ss
server: example.invalid
port: 443
cipher: aes-128-gcm
password: "replace-with-provider-value"
proxy-groups:
- name: "Proxy"
type: select
proxies:
- "Converted SS"
- DIRECT
rules:
- MATCH,Proxy
This snippet is a structural example, not a working server configuration. The host, port, cipher, password, UUID, TLS settings, and transport values must come from the provider. A converted V2Ray entry may include fields such as uuid, network, servername, ws-opts, or grpc-opts. Do not copy the Shadowsocks fields above into a V2Ray entry or assume that changing only type is sufficient.
After import, verify the profile’s update behavior. A local file is a snapshot and will not refresh by itself. A remote profile may update on a schedule, but the update request can fail when the URL expires, the provider changes its response format, or the client cannot reach the subscription endpoint. Keep the original source separate from the generated profile so you can repeat the conversion when necessary.
Inspect the generated YAML before trusting it
A successful download does not prove that the profile is correct. The client may accept a file while silently ignoring unknown fields, creating groups with no members, or applying a final MATCH,DIRECT rule that sends all traffic directly. Review the document as a chain of references: nodes or providers must exist, groups must point to valid names, and rules must point to groups that are actually defined.
Check required sections and references
For a small converted profile, look for proxies, proxy-groups, and rules. Some providers use proxy-providers instead of embedding every node directly. In that case, verify the provider URL, its selected format, and the groups that reference the provider. A group such as Proxy is not useful if its members are named PROXY or if the converter has renamed nodes without updating the group.
Check YAML indentation with a local editor that displays spaces. Tabs, duplicated keys, an unquoted colon, or a malformed list item can stop parsing. Also search for unexpected additions such as extra external controller settings, remote scripts, unknown rule-provider URLs, or a subscription update address that is different from the one you approved. Not every extra field is malicious, but every extra field should have a clear purpose.
Check protocol and transport details
For SS, compare the server, port, cipher, and password with the provider’s original information. For VMess, compare the UUID, alterId behavior, security setting, TLS state, server name, network type, and transport parameters. For VLESS and Trojan, pay particular attention to the UUID or password, TLS or reality-related options, SNI, flow, and WebSocket or gRPC values. One missing path or server name can make a correctly formatted node unusable.
Do not assume that a successful latency test proves full compatibility. Some clients test only TCP reachability, while real traffic also depends on TLS negotiation, HTTP headers, DNS resolution, and the destination rule. After a latency check, open the connection log and test an HTTPS site, a domain that should use a direct rule, and a domain that should use the proxy group.
Refresh the profile without losing local changes
Subscription conversion is not a one-time task if the provider changes nodes or rotates credentials. A remote converted profile should be refreshed from its source at a controlled interval. In a desktop client, open the profile menu and use Update, Refresh, or the equivalent action. Wait for the update result, inspect the timestamp, and confirm that the active profile is still the one you intended to update. A successful button animation is not enough; check the client log if the node count remains unchanged.
Keep local customizations separate whenever possible. Directly editing a generated subscription file may work temporarily, but the next update can replace the entire file. Depending on the client and kernel, use an override, merge configuration, profile template, or supported script for stable changes such as a custom mixed-port, local DNS behavior, proxy-group additions, or private rules. The exact feature names differ between Clash Verge Rev and Mihomo-based clients, so confirm how the installed version applies overrides.
| Task | Recommended location | Reason |
|---|---|---|
| Node credentials | Provider source or converted profile | These values are normally replaced during an update |
| Custom proxy group | Client override or merge layer | Preserves local selection logic across refreshes |
| Private routing rule | Supported rules or override section | Avoids editing generated content directly |
| Provider conversion options | Protected source record | Makes the conversion reproducible when the URL expires |
Set a refresh interval that respects the provider’s limits. Repeatedly requesting a large subscription every few minutes can consume quota or trigger rate limiting. If the provider gives an expiration or reset time, record it. When a subscription suddenly returns no nodes, test the source separately before changing the client: the account may have expired, the converter may be unavailable, or the provider may have altered its response format.
Troubleshoot empty profiles and failed connections
An “empty profile” usually has a small number of causes. The source may require authentication, the converter may have received an HTML login page instead of subscription data, Base64 decoding may have failed, or the output may contain nodes but no groups. Check the downloaded content size and first lines without sharing the credential. A response that begins with a webpage tag or a JSON error message is not a valid YAML profile.
If the profile loads but every node fails, compare one generated node with the original link. Focus on transport details rather than changing rules first. For VMess and VLESS, verify TLS, SNI, UUID, network, path, Host, and service name. For Shadowsocks, verify the cipher and password exactly. For all protocols, confirm that the server name has not been URL-decoded incorrectly and that the port is numeric.
- YAML parse error: restore the original generated file, remove manual edits, and validate indentation and quoting.
- No proxy groups: use a converter template that creates groups, or add a supported local group that references the generated node names.
- Group is empty: compare names character by character, including spaces, capitalization, and punctuation.
- Node timeout: test the protocol fields, DNS path, server reachability, and whether the provider has revoked the node.
- Rules appear ineffective: remember that rules are evaluated from top to bottom; an earlier broad rule can prevent a later specific rule from matching.
- Terminal still bypasses Clash: confirm the local mixed or SOCKS port and configure the terminal application separately if it does not read the system proxy.
When replacing a converter, revoke or regenerate the subscription token if the old URL may have been exposed. Changing the local profile name does not invalidate the original URL. Also remove downloaded YAML files from shared folders and cloud sync locations if they contain passwords or private node addresses. Treat converted configuration files with the same care as the original subscription.
Select a client and keep the final setup simple
Once the converted YAML has been checked, choose a client that matches your operating system and the features in the profile. A desktop client is responsible for importing and switching profiles, controlling the system proxy, displaying logs, and optionally requesting permission for TUN. The kernel remains responsible for parsing the configuration, establishing proxy connections, resolving DNS, and applying rules. If a field works in one client but not another, compare the active kernel and version before rewriting the entire profile.
For a first deployment, keep the configuration narrow: one trusted source, one clearly named proxy group, a small rule set, and a known local port. Add TUN, custom DNS, rule providers, scripts, and advanced transport options only after the basic proxy path works. This makes it easier to tell whether a problem comes from conversion, kernel support, DNS, routing, or operating-system permissions.
The most reliable subscription workflow is therefore not “paste a URL into any converter and click import.” Identify the source format, prefer a native Clash or Mihomo profile when available, protect the URL, convert only through a trusted path, inspect the YAML references and transport fields, and refresh it without overwriting your local overrides. With those checks in place, SS and V2Ray links can become a maintainable Clash configuration rather than a fragile one-time import.