Is Clash compatible with sing-box?
Reuse the node protocols and express the configuration as mihomo YAML.
sing-box uses JSON configurations, while Clash uses mihomo YAML. Move the nodes, routing intent, and DNS behavior you need into a mihomo YAML configuration.
Which sing-box nodes can be reused?
When their parameters match, common sing-box protocols available in Clash include:
- VLESS;
- Trojan;
- Shadowsocks;
- Hysteria2;
- TUIC;
- AnyTLS;
- WireGuard;
- SSH.
See the complete protocol list.
Fastest migration path
- Prefer a mihomo / Clash subscription from the provider.
- If only an
ss://,vless://, or similar share link is available, convert it to mihomo YAML first or recreate the node from its parameters in Clash. - Use a standalone node link as a parameter source for YAML or manual entry.
- Rebuild routing and DNS rules that only exist in the sing-box JSON.
What to configure during migration
- express the sing-box JSON structure as mihomo YAML;
- map the required
route,dns,inbounds, andoutboundsbehavior; - choose corresponding stable Clash capabilities for experimental options;
- set interface and Apple system preferences in Clash.
The same server works directly when its protocol, transport, TLS, authentication, and parameter combination is supported by Clash.
Return to the compatibility overview.