What a VPN config is: links, subscriptions and files

A VPN config is the settings a client needs to reach a server: the address, the port, the protocol and the keys. It comes in three forms: a single link such as vless://, vmess://, trojan://, ss:// or hysteria2://, a subscription address that hands out a whole list of servers, or a file such as .conf, .ovpn or JSON. All three go into a VPN client, not a browser, and whoever gives you one runs the server your traffic goes through.

Updated

On this page

Three forms of a config

  • A link — one server in one line. It starts with the protocol's name: vless://, vmess://, trojan://, ss://, hysteria2:// (or the short hy2://), tuic://. After # comes the name the client shows. This is what people most often mean by “a config” or “a node”.
  • A subscription — an https:// address from the service's account page or bot. The client downloads it, gets a list of servers and refreshes the list by itself from then on. Inside is a list of links, the same list in base64, or a Clash (mihomo) config in YAML. Many call it a “sub link”.
  • A file — a whole configuration: .conf for WireGuard and AmneziaWG, .ovpn for OpenVPN, JSON for sing-box or Xray. A file is imported into a client; a double-click won't start it.

What they look like

A link is a single line. Here is VLESS with Reality: the address and port come after the @, the settings after the ?, the name after the #.

Example
vless://user-id@203.0.113.5:443?encryption=none&security=reality&sni=www.example.com&fp=chrome&pbk=public-key&sid=6ba85179&type=tcp#Server-1

A subscription is an ordinary web address. In a browser it shows the service's page or a block of text that the client reads.

Example
https://sub.example.com/s/k3Jd82hQx

A sing-box or Xray file is JSON that describes the client's connections. In a sing-box file the server sits in outbounds:

config.json
{
  "outbounds": [
    {
      "type": "vless",
      "server": "203.0.113.5",
      "server_port": 443,
      "uuid": "user-id"
    }
  ]
}

How to tell them apart

  • vless://…@address:443?…#name

    What it isOne VLESS server; with security=reality in it, VLESS with Reality

    Where it goesA client built on sing-box or Xray

  • vmess:// and a long block of letters and digits

    What it isOne VMess server: its settings are JSON encoded in base64

    Where it goesA client built on sing-box or Xray

  • ss://…@address:port#name or ssconf://…

    What it isOne Shadowsocks server; Outline keys look the same, ssconf:// is the address of a key

    Where it goesA Shadowsocks client; ssconf:// needs one that knows Outline keys

  • trojan://, hysteria2://, hy2://, tuic://

    What it isOne Trojan, Hysteria2 or TUIC server

    Where it goesA client that supports that protocol

  • https://… from the service's account page or bot

    What it isA subscription: a list of servers as links, base64 or Clash YAML

    Where it goesThe client's field for subscriptions

  • A file with [Interface] and [Peer]

    What it isWireGuard; with lines such as Jc, Jmin, S1, H1, AmneziaWG

    Where it goesA WireGuard client, or one that knows AmneziaWG

  • A file with client, remote and a <ca> block

    What it isOpenVPN, usually an .ovpn file

    Where it goesAn OpenVPN client

  • JSON with outbounds

    What it isA whole client config: "type" inside means sing-box, "protocol" means Xray

    Where it goesA client built on that core

How to add each one

  1. 1

    A link

    Copy it whole, with no spaces or line breaks, and paste it into the client's add-from-link or add-from-clipboard field. Several links usually go in at once, one per line.

  2. 2

    A subscription

    Paste the https:// address into the subscriptions field: the client downloads the servers and refreshes them. Encrypted links such as happ://crypt… open only in the app they were made for: ask the service for the regular https:// address.

  3. 3

    A file

    Use import from a file, or paste the whole text of a WireGuard config. A QR code from a service holds the same link or config: phone clients scan it.

  4. 4

    Connect

    Pick a server and connect. The first time, the system asks for administrator rights or VPN permission.

How to check that a config works

A ping only says the server's address answers. It doesn't say the protocol gets through your network or the key is still valid. A real check sends a request through the protocol itself, and its answer tells the cases apart:

  • The request goes through — the config works on this network right now.
  • The address answers, but nothing goes through — the network blocks this protocol, or the key is wrong or expired.
  • No answer — the server is down, or its address is blocked on your network.
  • The name isn't found — the server's domain is gone, or your network's DNS doesn't resolve it.
  • After connecting — an IP check site should show the server's address and country, not yours.

Free configs from channels: what's the catch

  • The server's owner sees your traffic — HTTPS hides the content of pages, but whoever runs the server sees which addresses you connect to, when and how much, and everything that isn't encrypted. With a config from a channel, you don't know who that is.
  • They stop working — a config posted for thousands of people overloads the server and gets noticed and blocked quickly, so free configs rarely last long.
  • The server can do anything — log connections, add ads to unencrypted pages, send you to a fake page over plain HTTP.
  • Never post your own — a link, a subscription address or a .conf file is a key: anyone who has it connects as you and uses your traffic and device slots. If you posted one, ask the service for a new one, or issue a new key on your own server.
  • The calmer options — a VPN service you trust, or your own server, where you run it yourself.

Converting between formats

Clients don't all read the same format: one wants Clash YAML, another a list of links, a third sing-box JSON. The free subscription converter on this site (/tools/subscription/) reads links, a base64 subscription, a Clash or mihomo config and sing-box JSON, and writes the same servers in any of these formats, with a QR code for a phone.

It runs in your browser: what you paste isn't sent anywhere, and it doesn't fetch subscription addresses itself, so paste the contents. Not every format can hold every protocol: servers that can't be written in the chosen format are listed with the reason.

In Veli

Every kind of config goes into one field

In Veli, links, subscription addresses and configuration text all go into Profiles → Add: the app works out what it is, a line under the field says so, and the button says what will happen. That covers every link above, Outline ssconf:// keys, subscriptions as links, base64 or Clash, the link of an “Add to…” button for Happ, Hiddify, v2RayTun, sing-box or Clash, [Interface] / [Peer] text, and .conf, .ovpn and .json files, Xray JSON included. A file goes in through “Open a file” or by dragging it into the window; a subscription becomes its own group and refreshes by itself.

To check configs on a computer, press the arrows next to the search in Profiles: “Refresh and check: subscriptions, servers, whether they work”. Each row then shows the time of a request through the protocol, or a word: “blocked” when the address answers but no traffic goes through, “no answer” when the server is silent. “Fastest” never picks a profile nothing went through. On Android it's the same Profiles → Add, plus “Scan a QR code”; OpenVPN, TUIC and ready-made sing-box and Clash configurations don't connect on a phone, and the app says so right away.

FAQ

What is a VPN config?

The settings a VPN client needs to reach a server: address, port, protocol and keys. It comes as a link such as vless://, a subscription address or a file such as .conf or JSON.

What is the difference between a config and a subscription?

A link or a file is one server, fixed. A subscription is an address that hands out a list of servers, and the client refreshes it by itself when the service adds or removes servers.

Are free configs safe?

Not really: whoever runs the server sees where you connect and everything unencrypted, and you don't know who that is. They also stop working quickly once posted.

Can I convert a Clash subscription into vless:// links?

Yes. The subscription converter on this site turns links, base64, Clash and sing-box JSON into each other right in the browser, without sending anything anywhere.

Any config, one field

Links, subscriptions and .conf, .ovpn or JSON files go into Profiles → Add in Veli: the app works out the format by itself, and on a computer checks whether each server works.